Fixed time checks

This commit is contained in:
Kai Lauterbach 2023-05-14 11:01:49 +02:00
parent 60334d3109
commit bdf6765687

View file

@ -142,9 +142,9 @@ void tc_update_loop()
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
}