This commit is contained in:
Alex
2019-10-25 15:16:28 +03:00
parent 7e5a8a4770
commit 6ef6e10821
3 changed files with 11 additions and 5 deletions

View File

@@ -18,7 +18,7 @@ void timeTick() {
}
}
if (minuteCounter > 5) { // синхронизация каждые 5 минут
if (minuteCounter > 30 && WiFi.status() == WL_CONNECTED) { // синхронизация каждые 30 минут
minuteCounter = 0;
if (timeClient.update()) {
hrs = timeClient.getHours();