From 5ea9c5537e1bd11f20cfeee258bc025ccc18a87f Mon Sep 17 00:00:00 2001 From: Lionel Elie Mamane Date: Fri, 15 Nov 2024 22:10:45 +0100 Subject: [PATCH] Weather: fix min and max temperature being switched --- src/displayapp/screens/Weather.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/displayapp/screens/Weather.cpp b/src/displayapp/screens/Weather.cpp index 6699532a..d3ee78ef 100644 --- a/src/displayapp/screens/Weather.cpp +++ b/src/displayapp/screens/Weather.cpp @@ -154,8 +154,8 @@ void Weather::Refresh() { std::tm localTime = *std::localtime(reinterpret_cast(&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();