Skip to content

Commit

Permalink
Merge pull request arduino-libraries#56 from bitsy/patch-1
Browse files Browse the repository at this point in the history
Update NTPClient.cpp
  • Loading branch information
aentinger committed Sep 19, 2019
2 parents 151bbc5 + 712c58c commit 97cdcd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NTPClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ bool NTPClient::forceUpdate() {

this->_currentEpoc = secsSince1900 - SEVENZYYEARS;

return true;
return true; // return true after successful update
}

bool NTPClient::update() {
Expand All @@ -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 {
Expand Down

0 comments on commit 97cdcd7

Please sign in to comment.