Fix display redundant power toggle

Fix display redundant power toggle if backlight is configured as PWM
This commit is contained in:
Theo Arends 2020-08-02 11:42:28 +02:00
parent 2c9662bc62
commit 6185941b18

View File

@ -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