From c572d98072c6944c71d588d1b5eb8f79e8e8cc75 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Thu, 7 Mar 2024 15:09:30 -0500 Subject: [PATCH] slow mode is broken fix #6161 --- firmware/config/stm32f4ems/efifeatures.h | 4 ++++ firmware/console/binary/tunerstudio.cpp | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/firmware/config/stm32f4ems/efifeatures.h b/firmware/config/stm32f4ems/efifeatures.h index 725d29bf0a..c8488e67e6 100644 --- a/firmware/config/stm32f4ems/efifeatures.h +++ b/firmware/config/stm32f4ems/efifeatures.h @@ -127,6 +127,10 @@ #define EFI_TUNER_STUDIO TRUE #endif +#ifndef EFI_TS_SCATTER +#define EFI_TS_SCATTER TRUE +#endif + /** * Bluetooth UART setup support. */ diff --git a/firmware/console/binary/tunerstudio.cpp b/firmware/console/binary/tunerstudio.cpp index 52517256ed..7aa4091cbf 100644 --- a/firmware/console/binary/tunerstudio.cpp +++ b/firmware/console/binary/tunerstudio.cpp @@ -722,11 +722,13 @@ int TunerStudio::handleCrcCommand(TsChannelBase* tsChannel, char *data, int inco handleWriteValueCommand(tsChannel, TS_CRC, offset, value); } break; -#if EFI_TS_SCATTER case TS_GET_SCATTERED_GET_COMMAND: +#if EFI_TS_SCATTER handleScatteredReadCommand(tsChannel); - break; +#else + criticalError("Slow/wireless mode not supported"); #endif // EFI_TS_SCATTER + break; case TS_CRC_CHECK_COMMAND: handleCrc32Check(tsChannel, TS_CRC, offset, count); break;