AP_DroneCAN: add a delay after an event on process

ensure MCU gives up some time
This commit is contained in:
Andrew Tridgell 2023-06-07 16:16:57 +10:00
parent dc8366c31e
commit 3034aef570

View File

@ -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;
}