This commit is contained in:
rusefi 2017-05-27 09:05:08 -04:00
parent 4f0d1a4b46
commit 82cfb4bb75
1 changed files with 6 additions and 6 deletions

View File

@ -590,12 +590,12 @@ void handleQueryCommand(ts_channel_s *tsChannel, ts_response_format_e mode) {
*/
void handleOutputChannelsCommand(ts_channel_s *tsChannel, ts_response_format_e mode, uint16_t offset, uint16_t count) {
//
// if (size < offset + count) {
// scheduleMsg(&tsLogger, "invalid offset/count %d/%d", offset, count);
// sendErrorCode(tsChannel);
// return;
// }
if (sizeof(TunerStudioOutputChannels) < offset + count) {
scheduleMsg(&tsLogger, "invalid offset/count %d/%d", offset, count);
sendErrorCode(tsChannel);
return;
}
tsState.outputChannelsCommandCounter++;