From ee038cdf1f16aff017b60f38cda311accbdfc555 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 7 Mar 2024 18:52:59 +1100 Subject: [PATCH] GCS_MAVLink: adjust for AP_SCHEDULER_ENABLED being false --- libraries/GCS_MAVLink/GCS.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/GCS_MAVLink/GCS.cpp b/libraries/GCS_MAVLink/GCS.cpp index 609b91a17c..9539ded757 100644 --- a/libraries/GCS_MAVLink/GCS.cpp +++ b/libraries/GCS_MAVLink/GCS.cpp @@ -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; }