- lcd4l: add wind dirction string to weather_wind file

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2022-01-23 23:59:08 +01:00
committed by Thilo Graf
parent 8f63f163cc
commit 668161d7a5

View File

@@ -1164,10 +1164,12 @@ void CLCD4l::ParseInfo(uint64_t parseID, bool newID, bool firstRun)
std::string wwind = CWeather::getInstance()->getCurrentWindSpeed(); std::string wwind = CWeather::getInstance()->getCurrentWindSpeed();
wwind += "|" + CWeather::getInstance()->getCurrentWindBearing(); wwind += "|" + CWeather::getInstance()->getCurrentWindBearing();
wwind += "|" + CWeather::getInstance()->getCurrentWindDirection();
for (int i = 0; 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 += "\n" + CWeather::getInstance()->getForecastWindSpeed(i);
wwind += "|" + CWeather::getInstance()->getForecastWindBearing(i); wwind += "|" + CWeather::getInstance()->getForecastWindBearing(i);
wwind += "|" + CWeather::getInstance()->getForecastWindDirection(i);
} }
if (m_wwind.compare(wwind)) if (m_wwind.compare(wwind))
{ {