From a357f7d82e8cb6a574b7be40b1011d02ce94226e Mon Sep 17 00:00:00 2001 From: etwasmitbaum <47484288+etwasmitbaum@users.noreply.github.com> Date: Mon, 19 Jul 2021 14:12:52 +0200 Subject: [PATCH] fixed wrong incrementing of ntpSyncTimeCounter --- src/Watchy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Watchy.cpp b/src/Watchy.cpp index 84fa02a..28dc973 100644 --- a/src/Watchy.cpp +++ b/src/Watchy.cpp @@ -683,7 +683,7 @@ weatherData Watchy::getWeatherData(){ weatherIntervalCounter = 0; }else{ weatherIntervalCounter++; - ntpSyncTimeCounter = ntpSyncTimeCounter + WEATHER_UPDATE_INTERVAL; + ntpSyncTimeCounter++; } return currentWeather; } @@ -1004,4 +1004,4 @@ void Watchy::updateFWBegin(){ // time_t t = makeTime(tm); // return t + FUDGE; //add fudge factor to allow for compile time -// } \ No newline at end of file +// }