Browse Source

HAL_ChibiOS: end scheduler boost on expected delay

we want timer thread to be higher priority than main thread while in a
long operation
mission-4.1.18
Andrew Tridgell 6 years ago
parent
commit
ce9e9d8670
  1. 3
      libraries/AP_HAL_ChibiOS/Scheduler.cpp

3
libraries/AP_HAL_ChibiOS/Scheduler.cpp

@ -497,6 +497,9 @@ void Scheduler::expect_delay_ms(uint32_t ms)
} else { } else {
expect_delay_start = AP_HAL::millis(); expect_delay_start = AP_HAL::millis();
expect_delay_length = ms; expect_delay_length = ms;
// also put our priority below timer thread if we are boosted
boost_end();
} }
} }

Loading…
Cancel
Save