Qrome - updated to cast value to long for compatibility in newer ESP8266 core 2.5.X
parent
06c7c2f496
commit
b5a3a60026
|
|
@ -148,5 +148,5 @@ long TimeClient::getCurrentEpoch() {
|
||||||
}
|
}
|
||||||
|
|
||||||
long TimeClient::getCurrentEpochWithUtcOffset() {
|
long TimeClient::getCurrentEpochWithUtcOffset() {
|
||||||
return round(getCurrentEpoch() + 3600 * myUtcOffset + 86400L) % 86400L;
|
return (long)round(getCurrentEpoch() + 3600 * myUtcOffset + 86400L) % 86400L;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue