updated comments

This commit is contained in:
proddy
2020-08-14 12:09:38 +02:00
parent ed60b79a2d
commit cab8037ff8

View File

@@ -154,6 +154,8 @@ void RxService::add(uint8_t * data, uint8_t length) {
}
// validate the CRC
// if it fails then increment the number of corrupt/incomplete telegrams and only report to console/syslog
// if watch is running
uint8_t crc = calculate_crc(data, length - 1);
if (data[length - 1] != crc) {
increment_telegram_error_count();