bugfix: TS connectivity issue with enlarged output channels

This commit is contained in:
rusefillc 2022-04-17 20:02:57 -04:00
parent 44dae6d8d5
commit 9fdba11d87
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ bool rebootForPresetPending = false;
* Gauges refresh
*/
void TunerStudio::cmdOutputChannels(TsChannelBase* tsChannel, uint16_t offset, uint16_t count) {
if (offset + count > sizeof(TunerStudioOutputChannels)) {
if (offset + count > TS_TOTAL_OUTPUT_SIZE) {
efiPrintf("TS: Version Mismatch? Too much outputs requested %d/%d/%d", offset, count,
sizeof(TunerStudioOutputChannels));
sendErrorCode(tsChannel, TS_RESPONSE_OUT_OF_RANGE);