mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 08:49:52 +03:00
show incomplete Rx with crc
This commit is contained in:
@@ -150,9 +150,9 @@ void RxService::add(uint8_t * data, uint8_t length) {
|
|||||||
if (data[length - 1] != crc) {
|
if (data[length - 1] != crc) {
|
||||||
if ((data[0] & 0x7F) != ems_bus_id()) { // do not count echos as errors
|
if ((data[0] & 0x7F) != ems_bus_id()) { // do not count echos as errors
|
||||||
telegram_error_count_++;
|
telegram_error_count_++;
|
||||||
LOG_WARNING("Incomplete Rx: %s", Helpers::data_to_hex(data, length - 1).c_str()); // exclude CRC
|
LOG_WARNING("Incomplete Rx: %s", Helpers::data_to_hex(data, length).c_str()); // include CRC
|
||||||
} else {
|
} else {
|
||||||
LOG_TRACE("Incomplete Rx: %s", Helpers::data_to_hex(data, length - 1).c_str()); // exclude CRC
|
LOG_TRACE("Incomplete Rx: %s", Helpers::data_to_hex(data, length).c_str()); // include CRC
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user