mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-21 16:18:29 -04:00
GCS_MAVLink: adjust for AP_SCHEDULER_ENABLED being false
This commit is contained in:
parent
35dbf93e13
commit
ee038cdf1f
@ -376,9 +376,11 @@ bool GCS::out_of_time() const
|
||||
return false;
|
||||
}
|
||||
|
||||
#if AP_SCHEDULER_ENABLED
|
||||
if (min_loop_time_remaining_for_message_send_us() <= AP::scheduler().time_available_usec()) {
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user