Adjust for 9 second screen udpate in NTPClient

This commit is contained in:
Paul Warren 2019-11-26 23:42:15 +11:00
parent 589d99f723
commit 295a9020f5
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ TimeChangeRule *tcr;
// Network clients
WiFiUDP ntpUDP;
HTTPClient http;
NTPClient timeClient(ntpUDP, "raspberrypi.lan", 0, 60000); //use internal ntp server, update every 10 minutes
NTPClient timeClient(ntpUDP, "raspberrypi.lan", 9, 60000); //use internal ntp server, update every 10 minutes, taking in to account the 9 seconds it takes to update the screen for the current time
//NTPClient timeClient(ntpUDP, "au.pool.ntp.org", 0, 60000); //use internal ntp server, update every 10 minutes