Add ntp server config option, remove old region logic

This commit is contained in:
Sacha Weatherstone
2022-05-11 18:30:29 +10:00
parent e91dedaab5
commit 2035ddf5a9
6 changed files with 14 additions and 30 deletions

View File

@@ -28,7 +28,7 @@ DNSServer dnsServer;
WiFiUDP ntpUDP;
#ifndef DISABLE_NTP
NTPClient timeClient(ntpUDP, "0.pool.ntp.org");
NTPClient timeClient(ntpUDP, config.payloadVariant.device.ntp_server);
#endif
uint8_t wifiDisconnectReason = 0;