diff --git a/communication/packet/canpacket.cpp b/communication/packet/canpacket.cpp index 50190f7..c790f8d 100644 --- a/communication/packet/canpacket.cpp +++ b/communication/packet/canpacket.cpp @@ -124,7 +124,7 @@ bool HardwareCANPacket::EncodeFromMessage(const CANMessage& message, std::vector const optional lenFromDLC = CANFD_DLCToLength(message.dlcOnWire); if (lenFromDLC.has_value() && *lenFromDLC != 0) { - if (*lenFromDLC < lengthNibble || *lenFromDLC > 0xF) { + if (*lenFromDLC < lengthNibble) { report(APIEvent::Type::MessageMaxLengthExceeded, APIEvent::Severity::Error); return false; }