Skip to content

Commit

Permalink
evse.cpp: replace delay by vTaskDelay; only log NTP sync status when …
Browse files Browse the repository at this point in the history
…wifi is on
  • Loading branch information
dingo35 committed Apr 19, 2024
1 parent 60e8035 commit 04114ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SmartEVSE-3/src/evse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4778,9 +4778,9 @@ void setup() {

void loop() {
//this loop is for non-time critical stuff that needs to run approx 1 / second
delay(1000);
vTaskDelay(1000 / portTICK_PERIOD_MS);
getLocalTime(&timeinfo, 1000U);
if (!LocalTimeSet) {
if (!LocalTimeSet && WIFImode == 1) {
_LOG_A("Time not synced with NTP yet.\n");
}

Expand Down

0 comments on commit 04114ff

Please sign in to comment.