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;
|
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
|
||||||
// }
|
// }
|
||||||
|
|
Loading…
Reference in New Issue