lcd4l: we need the forecast for current day

Origin commit data
------------------
Branch: ni/coolstream
Commit: 19c15755f6
Author: vanhofen <vanhofen@gmx.de>
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
This commit is contained in:
vanhofen
2019-03-23 13:50:31 +01:00
parent 902c21b3ee
commit 0d6c9a37a1

View File

@@ -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);