HAL_ChibiOS: end scheduler boost on expected delay

we want timer thread to be higher priority than main thread while in a
long operation
This commit is contained in:
Andrew Tridgell 2019-05-07 11:58:47 +10:00 committed by Randy Mackay
parent 9f26ae5e8c
commit 59669209fe
1 changed files with 3 additions and 0 deletions

View File

@ -498,6 +498,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();
} }
} }