From cd6f19e76087bc387fee675ef5b37872cb7d95b0 Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 2 Jul 2019 00:08:20 +0300 Subject: [PATCH] Update time.ino --- firmware/GyverLamp_v1.4/time.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/GyverLamp_v1.4/time.ino b/firmware/GyverLamp_v1.4/time.ino index 0a40fbf..a746d55 100644 --- a/firmware/GyverLamp_v1.4/time.ino +++ b/firmware/GyverLamp_v1.4/time.ino @@ -1,7 +1,7 @@ void timeTick() { - if (ESP_MODE == 1) { - timeClient.update(); + if (ESP_MODE == 1) { if (timeTimer.isReady()) { + timeClient.update(); byte thisDay = timeClient.getDay(); if (thisDay == 0) thisDay = 7; // воскресенье это 0 thisDay--;