Closed HarmOtten closed 6 years ago
Hi Jan, I think there is a bug in your sketch. This:
char messageCRC[4]; strncpy(messageCRC, telegram + endChar + 1, 4); ... validCRCFound = (strtol(messageCRC, NULL, 16) == currentCRC);
Should be:
char messageCRC[5]; strncpy(messageCRC, telegram + endChar + 1, 4); messageCRC[4] = 0; ... validCRCFound = (strtol(messageCRC, NULL, 16) == currentCRC);
This will probably reduce a lot of "Invalid CRC" messages ;-)
Thanks. Weird. forget to commit i guess.
Hi Jan, I think there is a bug in your sketch. This:
Should be:
This will probably reduce a lot of "Invalid CRC" messages ;-)