Remove extra Udp.parsePacket() from example, it should only be called once

This commit is contained in:
Cristian Maglie 2016-03-04 13:07:03 +01:00
parent 886ecf374f
commit d718a4a166
1 changed files with 0 additions and 1 deletions

View File

@ -77,7 +77,6 @@ void loop() {
sendNTPpacket(timeServer); // send an NTP packet to a time server
// wait to see if a reply is available
delay(1000);
Serial.println(Udp.parsePacket());
if (Udp.parsePacket()) {
Serial.println("packet received");
// We've received a packet, read the data from it