removing dead code
This commit is contained in:
parent
805604fc2b
commit
270905fa8b
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue