Skip to content

Commit d718a4a

Browse files
committed
Remove extra Udp.parsePacket() from example, it should only be called once
1 parent 886ecf3 commit d718a4a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

libraries/WiFi/examples/WiFiUdpNtpClient/WiFiUdpNtpClient.ino

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ void loop() {
7777
sendNTPpacket(timeServer); // send an NTP packet to a time server
7878
// wait to see if a reply is available
7979
delay(1000);
80-
Serial.println(Udp.parsePacket());
8180
if (Udp.parsePacket()) {
8281
Serial.println("packet received");
8382
// We've received a packet, read the data from it

0 commit comments

Comments
 (0)