Merge pull request #1 from WhymustIhaveaname/dev

fix an adding one error
This commit is contained in:
WhymustIhaveaname 2020-04-25 06:56:01 +01:00 committed by GitHub
commit b1e27b8097
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -193,7 +193,7 @@ int8_t NTPClient::update() {
unsigned long NTPClient::getEpochTime() const {
return this->_timeOffset + // User offset
this->_currentEpoc + // Epoc returned by the NTP server
((millis() - this->_lastUpdate + (int)(this->_current_epoc_dec*1000)) / 1000); // Time since last update
((millis() - this->_lastUpdate + this->_current_epoc_dec*1000)/1000.0); // Time since last update
}
float NTPClient::get_millis() const{