From 6185941b18313a8763a88efe3c889e8152be53f4 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Sun, 2 Aug 2020 11:42:28 +0200 Subject: [PATCH] Fix display redundant power toggle Fix display redundant power toggle if backlight is configured as PWM --- tasmota/xdrv_13_display.ino | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tasmota/xdrv_13_display.ino b/tasmota/xdrv_13_display.ino index d1fc01832..c7e4fb251 100644 --- a/tasmota/xdrv_13_display.ino +++ b/tasmota/xdrv_13_display.ino @@ -1268,7 +1268,9 @@ void DisplayInitDriver(void) // AddLog_P2(LOG_LEVEL_DEBUG, PSTR(D_LOG_DEBUG "Display model %d"), Settings.display_model); if (Settings.display_model) { - devices_present++; + if (!light_type) { + devices_present++; // If no PWM channel for backlight then use "normal" power control + } disp_device = devices_present; #ifndef USE_DISPLAY_MODES1TO5