From e1a0ca056ac559603b4eca962212801a38b50672 Mon Sep 17 00:00:00 2001 From: Jonathan Schwartz Date: Fri, 21 Mar 2025 18:04:45 +0000 Subject: [PATCH] Communication: Ignore empty LIN frames for checksum --- communication/packet/linpacket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/communication/packet/linpacket.cpp b/communication/packet/linpacket.cpp index 6a68b57..04c215d 100644 --- a/communication/packet/linpacket.cpp +++ b/communication/packet/linpacket.cpp @@ -31,7 +31,7 @@ std::shared_ptr HardwareLINPacket::DecodeToMessage(const std::vector bool { /* messages with no data have no checksum (e.g. header only) */ if(!msg->data.size()) - return true; + return false; uint8_t checkSum = (8 > numDataBytes) ? *(dataStart + numDataBytes) : packet->CoreMiniBitsLIN.LINByte9; LINMessage::calcChecksum(*msg);