Skip to content

Commit 5c1ee1f

Browse files
committed
Use correct variable for sendNTPpacket
1 parent 6387005 commit 5c1ee1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/ESP8266WiFi/examples/NTPClient/NTPClient.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ void loop()
7272
//get a random server from the pool
7373
WiFi.hostByName(ntpServerName, timeServerIP);
7474

75-
sendNTPpacket(timeServer); // send an NTP packet to a time server
75+
sendNTPpacket(timeServerIP); // send an NTP packet to a time server
7676
// wait to see if a reply is available
7777
delay(1000);
7878

0 commit comments

Comments
 (0)