Final changes before 2.0

This commit is contained in:
Gunnar Skjold
2021-12-10 08:19:48 +01:00
parent db859e3ff5
commit d697f7e37f
3 changed files with 7 additions and 4 deletions

View File

@@ -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;