Qrome - updated to cast value to long for compatibility in newer ESP8266 core 2.5.X

pull/64/head
Chrome Legion 2018-12-15 09:15:16 -07:00
parent 06c7c2f496
commit b5a3a60026
1 changed files with 2 additions and 2 deletions

View File

@ -148,5 +148,5 @@ long TimeClient::getCurrentEpoch() {
}
long TimeClient::getCurrentEpochWithUtcOffset() {
return round(getCurrentEpoch() + 3600 * myUtcOffset + 86400L) % 86400L;
return (long)round(getCurrentEpoch() + 3600 * myUtcOffset + 86400L) % 86400L;
}