We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 151bbc5 + 712c58c commit 97cdcd7Copy full SHA for 97cdcd7
NTPClient.cpp
@@ -89,7 +89,7 @@ bool NTPClient::forceUpdate() {
89
90
this->_currentEpoc = secsSince1900 - SEVENZYYEARS;
91
92
- return true;
+ return true; // return true after successful update
93
}
94
95
bool NTPClient::update() {
@@ -98,7 +98,7 @@ bool NTPClient::update() {
98
if (!this->_udpSetup) this->begin(); // setup the UDP client if needed
99
return this->forceUpdate();
100
101
+ return false; // return false if update does not occur
102
103
104
unsigned long NTPClient::getEpochTime() const {
0 commit comments