mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 11:16:34 +00:00
On universal display remove default backlight power if a PWM channel is used for backlight
This commit is contained in:
parent
2ddbc7c7fa
commit
0d225839da
@ -11,6 +11,7 @@ All notable changes to this project will be documented in this file.
|
||||
|
||||
### Changed
|
||||
- ESP32 compiler option from `target-align` to `no-target-align` (#21407)
|
||||
- On universal display remove default backlight power if a PWM channel is used for backlight
|
||||
|
||||
### Fixed
|
||||
- Domoticz re-subscribe on MQTT reconnect. Regression from v13.4.0.3 (#21281)
|
||||
|
@ -126,6 +126,7 @@ The latter links can be used for OTA upgrades too like ``OtaUrl https://ota.tasm
|
||||
### Breaking Changed
|
||||
|
||||
### Changed
|
||||
- On universal display remove default backlight power if a PWM channel is used for backlight
|
||||
- ESP32 compiler option from `target-align` to `no-target-align` [#21407](https://github.com/arendst/Tasmota/issues/21407)
|
||||
|
||||
### Fixed
|
||||
|
@ -1908,7 +1908,11 @@ void DisplayInitDriver(void) {
|
||||
|
||||
UpdateDevicesPresent(1);
|
||||
if (!PinUsed(GPIO_BACKLIGHT)) {
|
||||
if (TasmotaGlobal.light_type && (4 == Settings->display_model)) {
|
||||
// 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
|
||||
) {
|
||||
UpdateDevicesPresent(-1); // Assume PWM channel is used for backlight
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user