mirror of https://github.com/ArduPilot/ardupilot
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