Skip to content

Commit 4a9c2aa

Browse files
authored
Allow setting timeOffset as long (fixes #72 #168)
1 parent 62fafd8 commit 4a9c2aa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: NTPClient.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ void NTPClient::end() {
169169
this->_udpSetup = false;
170170
}
171171

172-
void NTPClient::setTimeOffset(int timeOffset) {
172+
void NTPClient::setTimeOffset(long timeOffset) {
173173
this->_timeOffset = timeOffset;
174174
}
175175

Diff for: NTPClient.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class NTPClient {
8989
/**
9090
* Changes the time offset. Useful for changing timezones dynamically
9191
*/
92-
void setTimeOffset(int timeOffset);
92+
void setTimeOffset(long timeOffset);
9393

9494
/**
9595
* Set the update interval to another frequency. E.g. useful when the

0 commit comments

Comments
 (0)