Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #5866 from 0xc0170/fix_tickless_deepsleep
Browse files Browse the repository at this point in the history
RTX idle: sleep without locked deep sleep fix
  • Loading branch information
cmonr committed Jan 23, 2018
2 parents 467e25f + 9a18732 commit eb2f4ae
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 eb2f4ae

Please sign in to comment.