Skip to content

Commit

Permalink
setup: Wait for 2 seconds before resetting
Browse files Browse the repository at this point in the history
Wait for 2 seconds before resetting after receiving a reboot command.

This is necessary for bluetooth connections and messages to properly
finish.

Signed-off-by: Joao Cordeiro <jvcc@cesar.org.br>
  • Loading branch information
jcorde committed Aug 30, 2019
1 parent 0452823 commit 78a5e8c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions setup/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ void main(void)
continue;

LOG_INF("Reseting system...");
k_sleep(2000);
sys_reboot(SYS_REBOOT_WARM);
}
}

0 comments on commit 78a5e8c

Please sign in to comment.