From bc4289aa7f86f226537af87941a393b75eecc830 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Thu, 24 Nov 2022 10:01:45 -0500 Subject: [PATCH] =?UTF-8?q?Full=20Optimized=20=E2=80=93=20High=20Speed=20#?= =?UTF-8?q?4818?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- firmware/console/binary/tunerstudio.cpp | 7 +++++++ firmware/console/binary/tunerstudio_impl.h | 1 + 2 files changed, 8 insertions(+) diff --git a/firmware/console/binary/tunerstudio.cpp b/firmware/console/binary/tunerstudio.cpp index d8fa3f9d8b..9194c40680 100644 --- a/firmware/console/binary/tunerstudio.cpp +++ b/firmware/console/binary/tunerstudio.cpp @@ -212,6 +212,10 @@ void TunerStudio::handleCrc32Check(TsChannelBase *tsChannel, ts_response_format_ tsChannel->sendResponse(mode, (const uint8_t *) &crc, 4); } +void TunerStudio::handleScatteredReadCommand(TsChannelBase* tsChannel) { + +} + /** * 'Write' command receives a single value at a given offset * @note Writing values one by one is pretty slow @@ -658,6 +662,9 @@ int TunerStudio::handleCrcCommand(TsChannelBase* tsChannel, char *data, int inco handleWriteValueCommand(tsChannel, TS_CRC, offset, value); } break; + case TS_GET_SCATTERED_GET_COMMAND: + handleScatteredReadCommand(tsChannel); + break; case TS_CRC_CHECK_COMMAND: handleCrc32Check(tsChannel, TS_CRC, offset, count); break; diff --git a/firmware/console/binary/tunerstudio_impl.h b/firmware/console/binary/tunerstudio_impl.h index 51d0e3047c..53246cab66 100644 --- a/firmware/console/binary/tunerstudio_impl.h +++ b/firmware/console/binary/tunerstudio_impl.h @@ -38,6 +38,7 @@ public: void handleCrc32Check(TsChannelBase *tsChannel, ts_response_format_e mode, uint16_t offset, uint16_t count); void handleWriteValueCommand(TsChannelBase* tsChannel, ts_response_format_e mode, uint16_t offset, uint8_t value); void handlePageReadCommand(TsChannelBase* tsChannel, ts_response_format_e mode, uint16_t offset, uint16_t count); + void handleScatteredReadCommand(TsChannelBase* tsChannel); private: void sendErrorCode(TsChannelBase* tsChannel, uint8_t code);