NTPClient: Added packetFlush to update() as well. This should hopefully fix those random time delay bugs.
This commit is contained in:
parent
788b1f4119
commit
e8cf0e7ea2
@ -133,6 +133,8 @@ bool NTPClient::update() {
|
|||||||
this->begin();
|
this->begin();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
while(this->_udp->parsePacket() != 0) this->_udp->flush();
|
||||||
|
|
||||||
this->sendNTPPacket();
|
this->sendNTPPacket();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user