Remove extra Udp.parsePacket() from example, it should only be called once
This commit is contained in:
parent
fab526c607
commit
71d5f46702
1 changed files with 0 additions and 1 deletions
|
|
@ -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 a new issue