Skip to content

Commit

Permalink
SET_CONFIG return error for reserved parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
gregjhogan committed Feb 18, 2018
1 parent 2e99dbf commit cf126bb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/windows/pandaJ2534DLL/J2534Connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,11 @@ void J2534Connection::processIOCTLSetConfig(unsigned long Parameter, unsigned lo
default:
printf("Got unknown SET code %X\n", Parameter);
}

// reserved parameters usually mean special equiptment is required
if (Parameter >= 0x20) {
throw ERR_NOT_SUPPORTED;
}
}

unsigned long J2534Connection::processIOCTLGetConfig(unsigned long Parameter) {
Expand Down

0 comments on commit cf126bb

Please sign in to comment.