some more bugfixes
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good

This commit is contained in:
2022-11-18 14:18:45 +01:00
parent c248cdb876
commit 02eff4a26f
3 changed files with 36 additions and 34 deletions

View File

@ -80,8 +80,7 @@ int hdlc_remove_framing_with_crc_check(const uint8_t *src, size_t slen, uint8_t
dst[tlen++] = bt;
}
// calc crc16
// TODO: Warning: This does not work because the CRC16 is little endian
if(calc_crc16_buff_reflected( dst, tlen ) != 0) {
if(calc_crc16_buff_reflected( dst, tlen ) != 0x0f47) {
return 1;
}
*dlen = tlen - 2;