Update time.ino

This commit is contained in:
Alex
2019-07-02 00:08:20 +03:00
parent 7d35d00952
commit cd6f19e760

View File

@@ -1,7 +1,7 @@
void timeTick() { void timeTick() {
if (ESP_MODE == 1) { if (ESP_MODE == 1) {
timeClient.update();
if (timeTimer.isReady()) { if (timeTimer.isReady()) {
timeClient.update();
byte thisDay = timeClient.getDay(); byte thisDay = timeClient.getDay();
if (thisDay == 0) thisDay = 7; // воскресенье это 0 if (thisDay == 0) thisDay = 7; // воскресенье это 0
thisDay--; thisDay--;