From b5b4170d2d856a1f6621c667b8da85773e6c6fa6 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Sat, 23 Mar 2019 13:50:31 +0100 Subject: [PATCH] - lcd4l: we need the forecast for current day Signed-off-by: Thilo Graf --- src/driver/lcd4l.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/driver/lcd4l.cpp b/src/driver/lcd4l.cpp index 63d5149f9..2c59cd5fc 100644 --- a/src/driver/lcd4l.cpp +++ b/src/driver/lcd4l.cpp @@ -1078,7 +1078,7 @@ void CLCD4l::ParseInfo(uint64_t parseID, bool newID, bool firstRun) int forecast = CWeather::getInstance()->getForecastSize(); std::string wtemp = CWeather::getInstance()->getCurrentTemperature(); - for (int i = 1; i < forecast; i++) // 0 is current day + for (int i = 0; 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 = 1; i < forecast; i++) // 0 is current day + for (int i = 0; i < forecast; i++) // 0 is current day { wwind += "\n" + CWeather::getInstance()->getForecastWindSpeed(i); wwind += "|" + CWeather::getInstance()->getForecastWindBearing(i);