mirror of https://github.com/rusefi/wideband.git
safer comparison of CAN frame size
This commit is contained in:
parent
a34e0bbdf2
commit
ec29c21a84
|
@ -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) { }
|
||||
|
|
Loading…
Reference in New Issue