Added support for frames without checksum (#1108)

This commit is contained in:
Gunnar Skjold
2025-12-29 13:25:36 +01:00
committed by GitHub
parent 2e4a0fc0a3
commit a81aa11558
2 changed files with 3 additions and 3 deletions

View File

@@ -74,7 +74,7 @@ int8_t DSMRParser::parse(uint8_t *buf, DataParserContext &ctx, bool verified, Pr
fromHex((uint8_t*) &crc, String((char*) buf+crcPos), 2);
crc = ntohs(crc);
if(crc != crc_calc) {
if(crc > 0 && crc != crc_calc) {
if(debugger != NULL) {
debugger->printf_P(PSTR("CRC incorrrect, %04X != %04X at position %lu\n"), crc, crc_calc, crcPos);
}