From b0c505d17175974ea06567ccd2dae8866dbdfd7d Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Sun, 15 Dec 2024 12:38:26 +0100 Subject: [PATCH] Fix display model --- tasmota/tasmota_xdrv_driver/xdrv_13_display.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_13_display.ino b/tasmota/tasmota_xdrv_driver/xdrv_13_display.ino index 732586d65..5ba88cefa 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_13_display.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_13_display.ino @@ -1853,9 +1853,9 @@ void DisplayLocalSensor(void) void DisplayInitDriver(void) { uint32_t display_model = Settings->display_model; - Settings->display_model = 0; // Test if any display_model is available + Settings->display_model = 0; // Test if any display_model is available XdspCall(FUNC_DISPLAY_INIT_DRIVER); - if (Settings->display_model) { // If model found keep using user configured one for backward compatibility + if (Settings->display_model && display_model) { // If any model found keep using user configured one for backward compatibility Settings->display_model = display_model; } if (!Settings->display_model) { return; }