SET_CONFIG return error for reserved parameters

master
gregjhogan 2018-02-08 18:46:47 -06:00
parent 2e99dbf34a
commit cf126bb119
1 changed files with 5 additions and 0 deletions

View File

@ -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) {