diff --git a/communication/packet/canpacket.cpp b/communication/packet/canpacket.cpp index 4268a69..c20a3d9 100644 --- a/communication/packet/canpacket.cpp +++ b/communication/packet/canpacket.cpp @@ -109,7 +109,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; }