Skip to content

Commit 1d64f94

Browse files
WhymustIhaveanametickelton
authored andcommitted
Add files via upload
1 parent 4a2c617 commit 1d64f94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NTPClient.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ bool NTPClient::isTimeSet() const {
197197
unsigned long NTPClient::getEpochTime() const {
198198
return this->_timeOffset + // User offset
199199
this->_currentEpoc + // Epoch returned by the NTP server
200-
((millis() - this->_lastUpdate + (int)(this->_current_epoc_dec*1000)) / 1000); // Time since last update
200+
((millis() - this->_lastUpdate + this->_current_epoc_dec*1000)/1000.0); // Time since last update
201201
}
202202

203203
float NTPClient::get_millis() const{

0 commit comments

Comments
 (0)