From 270905fa8bc8248f074f7e201c97bb1089d25195 Mon Sep 17 00:00:00 2001 From: Andrey Date: Wed, 23 Jun 2021 04:26:32 -0400 Subject: [PATCH] removing dead code --- firmware/console/binary/tunerstudio.cpp | 9 ++------- firmware/console/binary/tunerstudio_io.h | 2 -- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/firmware/console/binary/tunerstudio.cpp b/firmware/console/binary/tunerstudio.cpp index d56184c84e..bae7f7de45 100644 --- a/firmware/console/binary/tunerstudio.cpp +++ b/firmware/console/binary/tunerstudio.cpp @@ -444,15 +444,9 @@ static void tsProcessOne(TsChannelBase* tsChannel) { if (!tsChannel->isReady()) { chThdSleepMilliseconds(10); - tsChannel->wasReady = false; return; } - if (!tsChannel->wasReady) { - tsChannel->wasReady = true; -// scheduleSimpleMsg(&logger, "ts channel is now ready ", hTimeNow()); - } - tsState.totalCounter++; uint8_t firstByte; @@ -471,8 +465,9 @@ static void tsProcessOne(TsChannelBase* tsChannel) { } onDataArrived(); - if (handlePlainCommand(tsChannel, firstByte)) + if (handlePlainCommand(tsChannel, firstByte)) { return; + } uint8_t secondByte; received = tsChannel->read(&secondByte, 1); diff --git a/firmware/console/binary/tunerstudio_io.h b/firmware/console/binary/tunerstudio_io.h index 212e606775..19ec0a2a91 100644 --- a/firmware/console/binary/tunerstudio_io.h +++ b/firmware/console/binary/tunerstudio_io.h @@ -48,8 +48,6 @@ public: */ char scratchBuffer[BLOCKING_FACTOR + 30]; - bool wasReady = false; - private: void writeCrcPacketSmall(uint8_t responseCode, const uint8_t* buf, size_t size); void writeCrcPacketLarge(uint8_t responseCode, const uint8_t* buf, size_t size);