From f79f7482c17fa843beaf3bbafbb47e7334f34503 Mon Sep 17 00:00:00 2001 From: sqfmi Date: Wed, 12 Jan 2022 19:23:02 -0500 Subject: [PATCH] use units params so it can be overridden --- src/Watchy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Watchy.cpp b/src/Watchy.cpp index b0b696d..e6c156a 100644 --- a/src/Watchy.cpp +++ b/src/Watchy.cpp @@ -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; }