From 790606adb2488f7a01e9a2077aa5be7e1a57605e Mon Sep 17 00:00:00 2001 From: Wietse van Buitenen Date: Sun, 31 May 2015 13:02:13 +0200 Subject: [PATCH] Use correct variable for sendNTPpacket --- .../libraries/ESP8266WiFi/examples/NTPClient/NTPClient.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hardware/esp8266com/esp8266/libraries/ESP8266WiFi/examples/NTPClient/NTPClient.ino b/hardware/esp8266com/esp8266/libraries/ESP8266WiFi/examples/NTPClient/NTPClient.ino index a3fdaf49c..4176c511b 100644 --- a/hardware/esp8266com/esp8266/libraries/ESP8266WiFi/examples/NTPClient/NTPClient.ino +++ b/hardware/esp8266com/esp8266/libraries/ESP8266WiFi/examples/NTPClient/NTPClient.ino @@ -72,7 +72,7 @@ void loop() //get a random server from the pool WiFi.hostByName(ntpServerName, timeServerIP); - sendNTPpacket(timeServer); // send an NTP packet to a time server + sendNTPpacket(timeServerIP); // send an NTP packet to a time server // wait to see if a reply is available delay(1000);