From 9fdba11d8709d92fb6412270cbb70163535b3de4 Mon Sep 17 00:00:00 2001 From: rusefillc <48498823+rusefillc@users.noreply.github.com> Date: Sun, 17 Apr 2022 20:02:57 -0400 Subject: [PATCH] bugfix: TS connectivity issue with enlarged output channels --- firmware/console/binary/tunerstudio_commands.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/console/binary/tunerstudio_commands.cpp b/firmware/console/binary/tunerstudio_commands.cpp index 3f11af0dd2..cfc1053ff7 100644 --- a/firmware/console/binary/tunerstudio_commands.cpp +++ b/firmware/console/binary/tunerstudio_commands.cpp @@ -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);