mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 23:33:57 -04:00
AP_DroneCAN: add a delay after an event on process
ensure MCU gives up some time
This commit is contained in:
parent
dc8366c31e
commit
3034aef570
@ -295,6 +295,7 @@ void CanardInterface::process(uint32_t duration_ms) {
|
||||
uint64_t now = AP_HAL::native_micros64();
|
||||
if (now < deadline) {
|
||||
_event_handle.wait(MIN(UINT16_MAX - 2U, deadline - now));
|
||||
hal.scheduler->delay_microseconds(50);
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user