initialize a variable
All checks were successful
EIVE/eive-obsw/pipeline/head This commit looks good
All checks were successful
EIVE/eive-obsw/pipeline/head This commit looks good
This commit is contained in:
parent
fbf8f5ef6c
commit
2b327bf3a7
@ -1132,7 +1132,7 @@ int PlocSupvUartManager::removeHdlcFramingWithCrcCheck(const uint8_t* src, size_
|
|||||||
}
|
}
|
||||||
// calc crc16
|
// calc crc16
|
||||||
uint16_t calcCrc = calc_crc16_buff_reflected(dst, tlen - 2);
|
uint16_t calcCrc = calc_crc16_buff_reflected(dst, tlen - 2);
|
||||||
uint16_t crc;
|
uint16_t crc = 0;
|
||||||
size_t dummy;
|
size_t dummy;
|
||||||
SerializeAdapter::deSerialize(&crc, dst + tlen - 2, &dummy, SerializeIF::Endianness::LITTLE);
|
SerializeAdapter::deSerialize(&crc, dst + tlen - 2, &dummy, SerializeIF::Endianness::LITTLE);
|
||||||
if (calcCrc != crc) {
|
if (calcCrc != crc) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user