mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 15:32:52 +02:00
lcd4l: align to TC code
Origin commit data
------------------
Branch: ni/coolstream
Commit: 3ed4a15615
Author: vanhofen <vanhofen@gmx.de>
Date: 2019-03-23 (Sat, 23 Mar 2019)
Origin message was:
------------------
- lcd4l: align to TC code
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1038,10 +1038,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);
|
||||
@@ -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 = 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);
|
||||
|
Reference in New Issue
Block a user