From b5a3a600264a298e3e6cc02dc652dfecb42eaf34 Mon Sep 17 00:00:00 2001 From: Chrome Legion Date: Sat, 15 Dec 2018 09:15:16 -0700 Subject: [PATCH] Qrome - updated to cast value to long for compatibility in newer ESP8266 core 2.5.X --- printermonitor/TimeClient.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/printermonitor/TimeClient.cpp b/printermonitor/TimeClient.cpp index 84d7f1d..b0753e0 100644 --- a/printermonitor/TimeClient.cpp +++ b/printermonitor/TimeClient.cpp @@ -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; +}