Allow setting timeOffset as long (fixes #72 #168)

This commit is contained in:
Benjamin G 2022-10-27 18:57:14 -05:00 committed by GitHub
parent 62fafd8eca
commit 4a9c2aa050
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -169,7 +169,7 @@ void NTPClient::end() {
this->_udpSetup = false; this->_udpSetup = false;
} }
void NTPClient::setTimeOffset(int timeOffset) { void NTPClient::setTimeOffset(long timeOffset) {
this->_timeOffset = timeOffset; this->_timeOffset = timeOffset;
} }

View File

@ -89,7 +89,7 @@ class NTPClient {
/** /**
* Changes the time offset. Useful for changing timezones dynamically * Changes the time offset. Useful for changing timezones dynamically
*/ */
void setTimeOffset(int timeOffset); void setTimeOffset(long timeOffset);
/** /**
* Set the update interval to another frequency. E.g. useful when the * Set the update interval to another frequency. E.g. useful when the