diff --git a/src/NTPClient.cpp b/src/NTPClient.cpp index 74d4d47..9352050 100644 --- a/src/NTPClient.cpp +++ b/src/NTPClient.cpp @@ -133,6 +133,8 @@ bool NTPClient::update() { this->begin(); } + while(this->_udp->parsePacket() != 0) this->_udp->flush(); + this->sendNTPPacket(); }