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);