diff --git a/NTPClient.cpp b/NTPClient.cpp index 87b7a53..79924c7 100644 --- a/NTPClient.cpp +++ b/NTPClient.cpp @@ -89,7 +89,7 @@ bool NTPClient::forceUpdate() { this->_currentEpoc = secsSince1900 - SEVENZYYEARS; - return true; + return true; // return true after successful update } bool NTPClient::update() { @@ -98,7 +98,7 @@ bool NTPClient::update() { if (!this->_udpSetup) this->begin(); // setup the UDP client if needed return this->forceUpdate(); } - return true; + return false; // return false if update does not occur } unsigned long NTPClient::getEpochTime() const {