Skip to content

Commit

Permalink
Change timing of time hack
Browse files Browse the repository at this point in the history
  • Loading branch information
lbussy committed Mar 22, 2020
1 parent 4d94b0c commit c4c9468
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ntp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ void setClock() {
time_t nowSecs = time(nullptr);
time_t startSecs = time(nullptr);
while (nowSecs < EPOCH_1_1_2019) {
if (nowSecs - startSecs > 10) {
if (nowSecs - startSecs > 9) {
#ifdef LOG_LEVEL
Serial.println();
#endif
Expand All @@ -41,7 +41,7 @@ void setClock() {
#ifdef LOG_LEVEL
Serial.print(F("."));
#endif
_delay(500);
_delay(1000);
yield();
nowSecs = time(nullptr);
}
Expand Down

0 comments on commit c4c9468

Please sign in to comment.