From 8e46327549eecf21174745efbe95ff71059c3659 Mon Sep 17 00:00:00 2001 From: Fabian Schlenz Date: Thu, 30 May 2019 11:36:53 +0200 Subject: [PATCH] Re-added the "Flush old UDP packets before updating the time" fix to NTPClient.cpp. See https://github.com/arduino-libraries/NTPClient/pull/62 --- src/NTPClient.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/NTPClient.cpp b/src/NTPClient.cpp index a7d14fa..c0a0188 100644 --- a/src/NTPClient.cpp +++ b/src/NTPClient.cpp @@ -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();