fixed wrong incrementing of ntpSyncTimeCounter

pull/70/head
etwasmitbaum 2021-07-19 14:12:52 +02:00 committed by GitHub
parent 75303e62bf
commit a357f7d82e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -683,7 +683,7 @@ weatherData Watchy::getWeatherData(){
weatherIntervalCounter = 0; weatherIntervalCounter = 0;
}else{ }else{
weatherIntervalCounter++; weatherIntervalCounter++;
ntpSyncTimeCounter = ntpSyncTimeCounter + WEATHER_UPDATE_INTERVAL; ntpSyncTimeCounter++;
} }
return currentWeather; return currentWeather;
} }
@ -1004,4 +1004,4 @@ void Watchy::updateFWBegin(){
// time_t t = makeTime(tm); // time_t t = makeTime(tm);
// return t + FUDGE; //add fudge factor to allow for compile time // return t + FUDGE; //add fudge factor to allow for compile time
// } // }