Skip to content

Commit

Permalink
GCS_MAVLink: adjust for AP_SCHEDULER_ENABLED being false
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Apr 17, 2024
1 parent 35dbf93 commit ee038cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/GCS_MAVLink/GCS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ee038cd

Please sign in to comment.