mirror of
https://github.com/arendst/Tasmota.git
synced 2025-04-24 23:07:17 +00:00
Fix display redundant power toggle
Fix display redundant power toggle if backlight is configured as PWM
This commit is contained in:
parent
2c9662bc62
commit
6185941b18
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user