initialize CRC16 in rw handler
All checks were successful
EIVE/eive-obsw/pipeline/head This commit looks good

This commit is contained in:
Robin Müller 2023-02-18 13:12:44 +01:00
parent 8f5a454771
commit cab2d00530
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814

View File

@ -168,7 +168,7 @@ ReturnValue_t RwHandler::interpretDeviceReply(DeviceCommandId_t id, const uint8_
// data is one more flag byte to show whether the value was read at least once. // data is one more flag byte to show whether the value was read at least once.
auto packetLen = rws::idToPacketLen(currentId); auto packetLen = rws::idToPacketLen(currentId);
// arrayprinter::print(packetPtr, packetLen); // arrayprinter::print(packetPtr, packetLen);
uint16_t replyCrc; uint16_t replyCrc = 0;
size_t dummy = 0; size_t dummy = 0;
SerializeAdapter::deSerialize(&replyCrc, packetPtr + packetLen - 2, &dummy, SerializeAdapter::deSerialize(&replyCrc, packetPtr + packetLen - 2, &dummy,
SerializeIF::Endianness::LITTLE); SerializeIF::Endianness::LITTLE);