mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 00:53:33 +08:00
First step in changing the CAN frame format - introduced various transfer lengths per transfer type
This commit is contained in:
@@ -19,7 +19,7 @@ int TransferSender::send(const uint8_t* payload, unsigned payload_len, Monotonic
|
||||
MonotonicTime blocking_deadline, TransferType transfer_type, NodeID dst_node_id,
|
||||
TransferID tid)
|
||||
{
|
||||
if (payload_len > MaxTransferPayloadLen)
|
||||
if (payload_len > getMaxPayloadLenForTransferType(transfer_type))
|
||||
{
|
||||
UAVCAN_ASSERT(0);
|
||||
return -ErrInvalidParam;
|
||||
|
||||
Reference in New Issue
Block a user