From 4a9c2aa0503ea1a095598ce80ac86de90b6d1322 Mon Sep 17 00:00:00 2001 From: Benjamin G Date: Thu, 27 Oct 2022 18:57:14 -0500 Subject: [PATCH] Allow setting timeOffset as long (fixes #72 #168) --- NTPClient.cpp | 2 +- NTPClient.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/NTPClient.cpp b/NTPClient.cpp index b435855..f0775e0 100755 --- a/NTPClient.cpp +++ b/NTPClient.cpp @@ -169,7 +169,7 @@ void NTPClient::end() { this->_udpSetup = false; } -void NTPClient::setTimeOffset(int timeOffset) { +void NTPClient::setTimeOffset(long timeOffset) { this->_timeOffset = timeOffset; } diff --git a/NTPClient.h b/NTPClient.h index a31d32f..da28c03 100755 --- a/NTPClient.h +++ b/NTPClient.h @@ -89,7 +89,7 @@ class NTPClient { /** * 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