corrected millis values on minutes tickOver

rtc
g7uhn 2020-12-30 15:36:39 +00:00
rodzic 4ca4815d40
commit 3aa0e0257e
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -368,7 +368,7 @@ void loop() // MAIN LOOP
display.print(buffer);
// Calculate time value (either uptime or UTC if GPS expansion has updated the values)
if ( millis() - tickOver > 60000) {
if ( millis() - tickOver > 59999) {
if (mm == 59) {
hh = (hh + 1) % 24; // If mm == 59, increment hh modulo 24
}