mirror of https://github.com/noisymime/Arduino.git
Remove extra Udp.parsePacket() from example, it should only be called once
This commit is contained in:
parent
886ecf374f
commit
d718a4a166
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue