clock ntp server priority
This commit is contained in:
parent
b960fd6b92
commit
259c271f8e
@ -22,7 +22,7 @@ void clockLoop() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!ntpSet && isWiFiConnected()) {
|
if (!ntpSet && isWiFiConnected()) {
|
||||||
configTime(CLOCK_GMT_OFFSET_SECONDS, CLOCK_DST_OFFSET_SECONDS, WiFi.gatewayIP().toString().c_str(), CLOCK_NTP_SERVER2_URL);
|
configTime(CLOCK_GMT_OFFSET_SECONDS, CLOCK_DST_OFFSET_SECONDS, CLOCK_NTP_SERVER2_URL, WiFi.gatewayIP().toString().c_str());
|
||||||
ntpSet = true;
|
ntpSet = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user