mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-03-30 19:58:55 +00:00
Final changes before 2.0
This commit is contained in:
@@ -138,7 +138,7 @@ int HDLC_validate(const uint8_t* d, int length, HDLCConfig* config, CosemDateTim
|
||||
ptr += 3;
|
||||
headersize += 3;
|
||||
}
|
||||
len = ceil(len/16.0) * 16;
|
||||
//len = ceil(len/16.0) * 16; // Technically GCM is 128bit blocks. This works for Austrian meters, but not Danish...
|
||||
if(len + headersize + footersize > length)
|
||||
return HDLC_FRAME_INCOMPLETE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user