From dd06f06b4bdbfd602d8e45384ef1b094dbd4d32a Mon Sep 17 00:00:00 2001 From: WhymustIhaveaname <38423345+WhymustIhaveaname@users.noreply.github.com> Date: Sat, 25 Apr 2020 06:53:15 +0100 Subject: [PATCH] Add files via upload --- NTPClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NTPClient.cpp b/NTPClient.cpp index 05df7d7..e7afd4d 100755 --- a/NTPClient.cpp +++ b/NTPClient.cpp @@ -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{