Skip to content

Commit 4c7e951

Browse files
thewiepigrr
authored andcommitted
Use correct variable for sendNTPpacket
1 parent fe96580 commit 4c7e951

File tree

1 file changed

+1
-1
lines changed
  • hardware/esp8266com/esp8266/libraries/ESP8266WiFi/examples/NTPClient

1 file changed

+1
-1
lines changed

hardware/esp8266com/esp8266/libraries/ESP8266WiFi/examples/NTPClient/NTPClient.ino

+1-1
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)