Author: Lionel Elie Mamane <lionel@mamane.lu>
Weather: fix min and max temperature being switched
src/displayapp/screens/Weather.cpp | 4 ++--
diff --git a/src/displayapp/screens/Weather.cpp b/src/displayapp/screens/Weather.cpp index 6699532ac93362fc0dfe02de8a33074865a36931..d3ee78efee728db2eb7e7230374aaf4c3b64e3ad 100644 --- a/src/displayapp/screens/Weather.cpp +++ b/src/displayapp/screens/Weather.cpp @@ -154,8 +154,8 @@ if (optCurrentForecast) { std::tm localTime = *std::localtime(reinterpret_cast<const time_t*>(&optCurrentForecast->timestamp)); for (int i = 0; i < optCurrentForecast->nbDays; i++) { - int16_t minTemp = optCurrentForecast->days[i]->maxTemperature.Celsius(); - int16_t maxTemp = optCurrentForecast->days[i]->minTemperature.Celsius(); + int16_t minTemp = optCurrentForecast->days[i]->minTemperature.Celsius(); + int16_t maxTemp = optCurrentForecast->days[i]->maxTemperature.Celsius(); if (settingsController.GetWeatherFormat() == Controllers::Settings::WeatherFormat::Imperial) { minTemp = optCurrentForecast->days[i]->maxTemperature.Fahrenheit(); maxTemp = optCurrentForecast->days[i]->minTemperature.Fahrenheit();