Fixed time checks
This commit is contained in:
parent
60334d3109
commit
bdf6765687
1 changed files with 2 additions and 2 deletions
|
@ -142,9 +142,9 @@ void tc_update_loop()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((timeClient.getMinutes() % 10) != 0 || last_min_check == timeClient.getMinutes()) // && tc_testOngoing == false
|
if ((hour() % 10) != 0 || last_min_check == minute()) // && tc_testOngoing == false
|
||||||
{
|
{
|
||||||
last_min_check = timeClient.getMinutes();
|
last_min_check = minute();
|
||||||
return; // only run every 10 minutes
|
return; // only run every 10 minutes
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue