mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 16:03:34 +08:00
Tail byte transmission fix
This commit is contained in:
@@ -155,10 +155,13 @@ bool Frame::compile(CanFrame& out_can_frame) const
|
||||
tail |= (1U << 5);
|
||||
}
|
||||
|
||||
UAVCAN_ASSERT(payload_len_ < sizeof(static_cast<CanFrame*>(NULL)->data));
|
||||
|
||||
out_can_frame.dlc = static_cast<uint8_t>(payload_len_);
|
||||
(void)copy(payload_, payload_ + payload_len_, out_can_frame.data);
|
||||
|
||||
out_can_frame.data[out_can_frame.dlc] = tail;
|
||||
out_can_frame.dlc++;
|
||||
|
||||
/*
|
||||
* Discriminator
|
||||
|
||||
Reference in New Issue
Block a user