mirror of
https://github.com/AlexGyver/GyverLamp.git
synced 2025-08-07 16:40:32 +03:00
Update time.ino
This commit is contained in:
@@ -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--;
|
||||||
|
Reference in New Issue
Block a user