diff --git a/libraries/AP_Scheduler/AP_Scheduler.cpp b/libraries/AP_Scheduler/AP_Scheduler.cpp index b486b9e9df..18c5cb9e4a 100644 --- a/libraries/AP_Scheduler/AP_Scheduler.cpp +++ b/libraries/AP_Scheduler/AP_Scheduler.cpp @@ -232,7 +232,9 @@ float AP_Scheduler::load_average() void AP_Scheduler::loop() { // wait for an INS sample + hal.util->persistent_data.scheduler_task = -3; AP::ins().wait_for_sample(); + hal.util->persistent_data.scheduler_task = -1; const uint32_t sample_time_us = AP_HAL::micros();