mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-01-20 01:55:03 +00:00
Fix
This commit is contained in:
parent
21687368c6
commit
178f603937
@ -126,11 +126,11 @@ int HDLC_validate(const uint8_t* d, int length, HDLCConfig* config, CosemDateTim
|
||||
headersize += 2 + systemTitleLength;
|
||||
ptr += systemTitleLength;
|
||||
if(((*ptr) & 0xFF) == 0x81) {
|
||||
ptr++
|
||||
ptr++;
|
||||
// 1-byte payload length
|
||||
ptr++
|
||||
ptr++;
|
||||
} else if(((*ptr) & 0xFF) == 0x82) {
|
||||
ptr++
|
||||
ptr++;
|
||||
headersize++;
|
||||
// 2-byte payload length
|
||||
ptr += 2;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user