Merge pull request #56 from bitsy/patch-1

Update NTPClient.cpp
This commit is contained in:
Alexander Entinger 2019-09-19 06:37:49 +02:00 committed by GitHub
commit 97cdcd7038
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {