Re-added the "Flush old UDP packets before updating the time" fix to NTPClient.cpp. See https://github.com/arduino-libraries/NTPClient/pull/62

This commit is contained in:
Fabian Schlenz 2019-05-30 11:36:53 +02:00
parent adb03d486b
commit 8e46327549
1 changed files with 3 additions and 0 deletions

View File

@ -129,6 +129,9 @@ int NTPClient::getMinutes() const {
int NTPClient::getSeconds() const {
return (this->getEpochTime() % 60);
}
boolean NTPClient::getTimeValid() const {
return (this->_timeValid);
}
String NTPClient::getFormattedTime() const {
unsigned long rawTime = this->getEpochTime();