some more bugfixes
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good
This commit is contained in:
3
thirdparty/tas/hdlc.c
vendored
3
thirdparty/tas/hdlc.c
vendored
@ -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;
|
||||
|
Reference in New Issue
Block a user