use units params so it can be overridden

pull/142/head
sqfmi 2022-01-12 19:23:02 -05:00
parent a7637604b4
commit f79f7482c1
1 changed files with 1 additions and 1 deletions

View File

@ -571,7 +571,7 @@ weatherData Watchy::getWeatherData(){
}
weatherData Watchy::getWeatherData(String cityID, String units, String lang, String url, String apiKey, uint8_t updateInterval){
currentWeather.isMetric = settings.weatherUnit == String("metric");
currentWeather.isMetric = units == String("metric");
if(weatherIntervalCounter < 0){ //-1 on first run, set to updateInterval
weatherIntervalCounter = updateInterval;
}