Skip to content

Commit

Permalink
Add delay before restart()
Browse files Browse the repository at this point in the history
  • Loading branch information
lbussy committed Apr 18, 2020
1 parent 93b14e6 commit ad0672e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ void _delay(unsigned long ulDelay) {
void reboot() {
Log.notice(F("Reboot request - rebooting system." CR));
saveBpm();
_delay(1000);
ESP.restart();
}

Expand Down

0 comments on commit ad0672e

Please sign in to comment.