mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-09 17:29:50 +03:00
remove colors on bad CRC
This commit is contained in:
@@ -160,7 +160,7 @@ void RxService::add(uint8_t * data, uint8_t length) {
|
|||||||
if (data[length - 1] != crc) {
|
if (data[length - 1] != crc) {
|
||||||
increment_telegram_error_count();
|
increment_telegram_error_count();
|
||||||
if (EMSESP::watch() != EMSESP::Watch::WATCH_OFF) {
|
if (EMSESP::watch() != EMSESP::Watch::WATCH_OFF) {
|
||||||
LOG_ERROR(F("Rx: %s %s(CRC %02X != %02X)%s"), Helpers::data_to_hex(data, length).c_str(), COLOR_RED, data[length - 1], crc, COLOR_RESET);
|
LOG_ERROR(F("Rx: %s (CRC %02X != %02X)"), Helpers::data_to_hex(data, length).c_str(), data[length - 1], crc);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user