removed debug code
This commit is contained in:
@@ -177,16 +177,12 @@ void BaseLoop::start()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
static unsigned char _lastRecvSymbol = SYN;
|
|
||||||
|
|
||||||
void BaseLoop::logRaw(const unsigned char byte, bool received) {
|
void BaseLoop::logRaw(const unsigned char byte, bool received) {
|
||||||
if (received == true) {
|
if (received == true) {
|
||||||
if (byte != SYN || byte !=_lastRecvSymbol)
|
|
||||||
L.log(bus, event, "<%02x", byte);
|
L.log(bus, event, "<%02x", byte);
|
||||||
_lastRecvSymbol = byte;
|
|
||||||
} else {
|
} else {
|
||||||
L.log(bus, event, ">%02x", byte);
|
L.log(bus, event, ">%02x", byte);
|
||||||
_lastRecvSymbol = ESC;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user