From 8b1bb629e6a419ad4845202b7af5b32d3f70f82d 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 6699532ac9..d3ee78efee 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();