Skip to content

Commit

Permalink
RTX idle: sleep without locked deep sleep fix
Browse files Browse the repository at this point in the history
If tickless is enabled, it should not be locking deepsleep
  • Loading branch information
0xc0170 committed Jan 17, 2018
1 parent 635a824 commit 9a18732
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions rtos/TARGET_CORTEX/mbed_rtx_idle.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 9a18732

Please sign in to comment.