mirror of https://github.com/sqfmi/Watchy.git
fixed wrong incrementing of ntpSyncTimeCounter
parent
75303e62bf
commit
a357f7d82e
|
@ -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
|
||||
// }
|
||||
// }
|
||||
|
|
Loading…
Reference in New Issue