mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 00:03:34 +08:00
CanIOManager::send() unblocks as soon as the frame was transmitted, instead of waiting for the entire queue to flush
This commit is contained in:
@@ -255,9 +255,9 @@ int CanIOManager::send(const CanFrame& frame, uint64_t monotonic_tx_deadline, ui
|
||||
|
||||
while (true)
|
||||
{
|
||||
int write_mask = iface_mask | makePendingTxMask();
|
||||
if (write_mask == 0)
|
||||
if (iface_mask == 0)
|
||||
break;
|
||||
int write_mask = iface_mask | makePendingTxMask();
|
||||
|
||||
const uint64_t timeout = getTimeUntilMonotonicDeadline(monotonic_blocking_deadline);
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user