NTPClient: Added packetFlush to update() as well. This should hopefully fix those random time delay bugs.

This commit is contained in:
Fabian Schlenz 2019-06-04 06:52:06 +02:00
parent 788b1f4119
commit e8cf0e7ea2

View File

@ -133,6 +133,8 @@ bool NTPClient::update() {
this->begin();
}
while(this->_udp->parsePacket() != 0) this->_udp->flush();
this->sendNTPPacket();
}