From 89aa3359a29cca518a6e395e156e5e71e2af876b Mon Sep 17 00:00:00 2001 From: Sandeep Mistry Date: Wed, 13 Apr 2016 09:29:27 -0400 Subject: [PATCH] Initialize _timeOffset and _currentEpoc to zero --- NTPClient.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NTPClient.h b/NTPClient.h index 0af383b..df87284 100644 --- a/NTPClient.h +++ b/NTPClient.h @@ -13,11 +13,11 @@ class NTPClient { const char* _poolServerName = "time.nist.gov"; // Default time server int _port = 1337; - int _timeOffset; + int _timeOffset = 0; unsigned int _updateInterval = 60000; // In ms - unsigned long _currentEpoc; // In s + unsigned long _currentEpoc = 0; // In s unsigned long _lastUpdate = 0; // In ms byte _packetBuffer[NTP_PACKET_SIZE];