Skip to content

Commit 97cdcd7

Browse files
authored
Merge pull request #56 from bitsy/patch-1
Update NTPClient.cpp
2 parents 151bbc5 + 712c58c commit 97cdcd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

NTPClient.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ bool NTPClient::forceUpdate() {
8989

9090
this->_currentEpoc = secsSince1900 - SEVENZYYEARS;
9191

92-
return true;
92+
return true; // return true after successful update
9393
}
9494

9595
bool NTPClient::update() {
@@ -98,7 +98,7 @@ bool NTPClient::update() {
9898
if (!this->_udpSetup) this->begin(); // setup the UDP client if needed
9999
return this->forceUpdate();
100100
}
101-
return true;
101+
return false; // return false if update does not occur
102102
}
103103

104104
unsigned long NTPClient::getEpochTime() const {

0 commit comments

Comments
 (0)