- lcd4l: align to TC code

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2019-03-23 13:36:58 +01:00
committed by Thilo Graf
parent 34a4954ab5
commit 0fcfc0a47e

View File

@@ -1075,10 +1075,10 @@ void CLCD4l::ParseInfo(uint64_t parseID, bool newID, bool firstRun)
m_wtimestamp = wtimestamp;
}
int forecast = 5; // days for forecast
int forecast = CWeather::getInstance()->getForecastSize();
std::string wtemp = CWeather::getInstance()->getCurrentTemperature();
for (int i = 0; i < 1 + forecast; i++)
for (int i = 1; i < forecast; i++) // 0 is current day
{
wtemp += "\n" + CWeather::getInstance()->getForecastTemperatureMin(i);
wtemp += "|" + CWeather::getInstance()->getForecastTemperatureMax(i);
@@ -1091,7 +1091,7 @@ void CLCD4l::ParseInfo(uint64_t parseID, bool newID, bool firstRun)
std::string wwind = CWeather::getInstance()->getCurrentWindSpeed();
wwind += "|" + CWeather::getInstance()->getCurrentWindBearing();
for (int i = 0; i < 1 + forecast; i++)
for (int i = 1; i < forecast; i++) // 0 is current day
{
wwind += "\n" + CWeather::getInstance()->getForecastWindSpeed(i);
wwind += "|" + CWeather::getInstance()->getForecastWindBearing(i);