dronecan / dronecan_dsdlc

Other
6 stars 30 forks source link

fixed check for valid length for CANFD #9

Closed tridge closed 1 year ago

tridge commented 1 year ago

the dlc on CANFD packets is quantised so payload_len may be larger than the byte length of the message Note that ideally we would do the dlc rounding and accept either the payload_len or dlc_roundup(payload_len), but this should be sufficient