From cab2d00530bc033fbc0fc19aaf1efd6d762818d8 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Sat, 18 Feb 2023 13:12:44 +0100 Subject: [PATCH] initialize CRC16 in rw handler --- mission/devices/RwHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mission/devices/RwHandler.cpp b/mission/devices/RwHandler.cpp index 13da2784..6d6032b3 100644 --- a/mission/devices/RwHandler.cpp +++ b/mission/devices/RwHandler.cpp @@ -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. auto packetLen = rws::idToPacketLen(currentId); // arrayprinter::print(packetPtr, packetLen); - uint16_t replyCrc; + uint16_t replyCrc = 0; size_t dummy = 0; SerializeAdapter::deSerialize(&replyCrc, packetPtr + packetLen - 2, &dummy, SerializeIF::Endianness::LITTLE);