RTX idle: sleep without locked deep sleep fix

If tickless is enabled, it should not be locking deepsleep
pull/5866/head
Martin Kojtal 2018-01-17 11:14:41 +00:00
parent 635a82495c
commit 9a18732b20
1 changed files with 0 additions and 2 deletions

View File

@ -198,9 +198,7 @@ static void default_idle_hook(void)
if (ticks_to_sleep) {
os_timer->schedule_tick(ticks_to_sleep);
sleep_manager_lock_deep_sleep();
sleep();
sleep_manager_unlock_deep_sleep();
os_timer->cancel_tick();
// calculate how long we slept