Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
knro committed Jul 3, 2024
1 parent 6623f35 commit a267430
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
9 changes: 5 additions & 4 deletions drivers/weather/weatherwatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ bool WeatherWatcher::createProperties()

addParameter("WEATHER_WIND_GUST", labelTP[3].text, minOK, maxOK, percWarn);
if (criticalSP[3].getState())
setCriticalParameter("WEATHER_WIND_GUST");
setCriticalParameter("WEATHER_WIND_GUST");
}
else if (x.first == keywordTP[4].getText())
{
Expand All @@ -140,7 +140,7 @@ bool WeatherWatcher::createProperties()

addParameter("WEATHER_CLOUDS", labelTP[4].text, minOK, maxOK, percWarn);
if (criticalSP[4].getState())
setCriticalParameter("WEATHER_CLOUDS");
setCriticalParameter("WEATHER_CLOUDS");
}
else if (x.first == keywordTP[5].getText())
{
Expand All @@ -166,7 +166,7 @@ bool WeatherWatcher::createProperties()

addParameter("WEATHER_PRESSURE", labelTP[6].text, minOK, maxOK, percWarn);
if (criticalSP[6].getState())
setCriticalParameter("WEATHER_PRESSURE");
setCriticalParameter("WEATHER_PRESSURE");
}
else if (x.first == keywordTP[7].getText())
{
Expand All @@ -179,7 +179,7 @@ bool WeatherWatcher::createProperties()

addParameter("WEATHER_FORECAST", labelTP[7].text, minOK, maxOK, percWarn);
if (criticalSP[7].getState())
setCriticalParameter("WEATHER_FORECAST");
setCriticalParameter("WEATHER_FORECAST");
}
}
return true;
Expand Down Expand Up @@ -396,6 +396,7 @@ bool WeatherWatcher::readWatchFile()

if (curl)
{
std::string readBuffer;
curl_easy_setopt(curl, CURLOPT_URL, requestURL);
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_data);
Expand Down
3 changes: 0 additions & 3 deletions drivers/weather/weatherwatcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,5 @@ class WeatherWatcher : public INDI::Weather

INDI::PropertyText watchFileTP {1};

bool initialParse { false };
std::string readBuffer;

std::map<std::string, std::string> weatherMap;
};

0 comments on commit a267430

Please sign in to comment.