summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Jones <daniel@danieljon.es>2024-10-07 14:02:22 +1100
committerDaniel Jones <daniel@danieljon.es>2024-10-07 14:02:22 +1100
commit02fb4db4605a9cf9929f951a5e60bc4cd65e5020 (patch)
tree1a45834ceb313f90446eb45418ddf56f8798308d /src
parent6f36788dfd2b07b59d88b47c656bbd5692c0cef0 (diff)
synctime() setenv and tzset
Diffstat (limited to 'src')
-rwxr-xr-xsrc/matrixdisplay.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/matrixdisplay.cpp b/src/matrixdisplay.cpp
index 40433a9..1c59112 100755
--- a/src/matrixdisplay.cpp
+++ b/src/matrixdisplay.cpp
@@ -251,6 +251,9 @@ void synctime()
{
printf("Syncing time\n");
configTime(0, 0, ntpServer);
+ setenv("TZ", tzone, 1);
+ tzset();
+ printLocalTime();
}
void wifi(void *pvParameters)
@@ -268,7 +271,7 @@ void wifi(void *pvParameters)
server.begin();
int retry = 0;
WiFi.begin(globalconf.cssid, globalconf.cpassword);
- //WiFi.begin("nodwdw", "wqdqwr23er23");
+ // WiFi.begin("nodwdw", "wqdqwr23er23");
printf("wifi connect to: %s : %s\n", globalconf.cssid, globalconf.cpassword);
Serial.println("Connecting to WiFi..");
while (WiFi.status() != WL_CONNECTED)
@@ -296,9 +299,6 @@ void wifi(void *pvParameters)
Serial.println(WiFi.localIP());
Serial.println(WiFi.dnsIP());
synctime();
- setenv("TZ", tzone, 1);
- tzset();
- printLocalTime();
ArduinoOTA.begin();
}