safer comparison of CAN frame size

This commit is contained in:
Matthew Kennedy 2024-09-24 18:36:05 -07:00
parent a34e0bbdf2
commit ec29c21a84
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ private:
template <typename TData>
class CanTxTyped final : public CanTxMessage
{
static_assert(sizeof(TData) == sizeof(CANTxFrame::data8));
static_assert(sizeof(TData) <= sizeof(CANTxFrame::data8));
public:
explicit CanTxTyped(uint32_t eid) : CanTxMessage(eid) { }