Skip to content

Commit

Permalink
Sleep even if clock not synchronized
Browse files Browse the repository at this point in the history
  • Loading branch information
ps2 committed May 22, 2017
1 parent 180d984 commit 94cb5cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scheduler.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ static void offset_timer_cb(void * p_context) {
break;
case SCHEDULER_STATE_REPORTING:
CLEAR_LED(LED_GREEN);
if (m_sleep_enabled && clock_is_synchronized()) {
if (m_sleep_enabled) {
do_sleep();
}
m_scheduler_state = SCHEDULER_STATE_SLEEP;
Expand Down

0 comments on commit 94cb5cd

Please sign in to comment.