GCS_MAVLink: adjust for AP_SCHEDULER_ENABLED being false

This commit is contained in:
Peter Barker 2024-03-07 18:52:59 +11:00 committed by Peter Barker
parent 35dbf93e13
commit ee038cdf1f
1 changed files with 2 additions and 0 deletions

View File

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