- lcd4l: fix crash

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2019-03-24 16:10:46 +01:00
committed by Thilo Graf
parent b5b4170d2d
commit 6187a82fee

View File

@@ -1103,7 +1103,7 @@ void CLCD4l::ParseInfo(uint64_t parseID, bool newID, bool firstRun)
} }
std::string wicon = CWeather::getInstance()->getCurrentIcon(); std::string wicon = CWeather::getInstance()->getCurrentIcon();
for (int i = 0; i < 1 + forecast; i++) for (int i = 0; i < forecast; i++)
wicon += "\n" + CWeather::getInstance()->getForecastIcon(i); wicon += "\n" + CWeather::getInstance()->getForecastIcon(i);
if (m_wicon.compare(wicon)) if (m_wicon.compare(wicon))
{ {