Fix universal display power regression (#21726)

This commit is contained in:
Theo Arends 2024-07-05 15:30:31 +02:00
parent 363cd8d79e
commit fee5251bd4
3 changed files with 6 additions and 5 deletions

View File

@ -24,6 +24,7 @@ All notable changes to this project will be documented in this file.
### Fixed
- Berry `bytes.resize()` for large sizes (#21716)
- On universal display remove default backlight power if a single PWM channel is used for backlight. Regression from 14.0.0.1 (#21726)
### Removed

View File

@ -167,6 +167,7 @@ The latter links can be used for OTA upgrades too like ``OtaUrl https://ota.tasm
- Matter refactor reading of multiple attributes to reduce memory pressure [#21675](https://github.com/arendst/Tasmota/issues/21675)
### Fixed
- On universal display remove default backlight power if a single PWM channel is used for backlight. Regression from 14.0.0.1 [#21726](https://github.com/arendst/Tasmota/issues/21726)
- Shutter MQTT on inverted shutter [#21663](https://github.com/arendst/Tasmota/issues/21663)
- Scripter TCP server [#21660](https://github.com/arendst/Tasmota/issues/21660)
- ESP32 allow use of UART0 with enabled USB_CDC_CONSOLE [#21496](https://github.com/arendst/Tasmota/issues/21496)

View File

@ -1892,12 +1892,11 @@ void DisplayInitDriver(void) {
UpdateDevicesPresent(1);
if (!PinUsed(GPIO_BACKLIGHT)) {
// if (TasmotaGlobal.light_type && (4 == Settings->display_model)) {
if (TasmotaGlobal.light_type && // Assume PWM channel
((4 == Settings->display_model) || // ILI9341 legacy
(17 == Settings->display_model)) // Universal
if ((LT_PWM1 == TasmotaGlobal.light_type) && // Single PWM light channel
((4 == Settings->display_model) || // ILI9341 legacy
(17 == Settings->display_model)) // Universal
) {
UpdateDevicesPresent(-1); // Assume PWM channel is used for backlight
UpdateDevicesPresent(-1); // Assume PWM channel is used for backlight
}
}
disp_device = TasmotaGlobal.devices_present;