From cab8037ff821b81e31586f520199b820c6c069cd Mon Sep 17 00:00:00 2001 From: proddy Date: Fri, 14 Aug 2020 12:09:38 +0200 Subject: [PATCH] updated comments --- src/telegram.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/telegram.cpp b/src/telegram.cpp index 4b8830661..8fa9bb341 100644 --- a/src/telegram.cpp +++ b/src/telegram.cpp @@ -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();