From 0d6c9a37a1f213d0e3a0a6d8433ea64b99b91d90 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Sat, 23 Mar 2019 13:50:31 +0100 Subject: [PATCH] lcd4l: we need the forecast for current day Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/19c15755f626fc52f695ccf9f451c3d612676241 Author: vanhofen Date: 2019-03-23 (Sat, 23 Mar 2019) Origin message was: ------------------ - lcd4l: we need the forecast for current day ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- 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 4c16a64f6..584193a58 100644 --- a/src/driver/lcd4l.cpp +++ b/src/driver/lcd4l.cpp @@ -1041,7 +1041,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); @@ -1054,7 +1054,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);