mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 11:46:34 +00:00
enable backlight fade
This commit is contained in:
parent
f1f2f51ba4
commit
baa125d4b6
@ -295,8 +295,7 @@ bool Esp32Device::get_backlight_invert()
|
||||
void Esp32Device::set_backlight_level(uint8_t level)
|
||||
{
|
||||
_backlight_level = level;
|
||||
// update_backlight(true);
|
||||
update_backlight(false);
|
||||
update_backlight(true);
|
||||
}
|
||||
|
||||
uint8_t Esp32Device::get_backlight_level()
|
||||
@ -307,8 +306,7 @@ uint8_t Esp32Device::get_backlight_level()
|
||||
void Esp32Device::set_backlight_power(bool power)
|
||||
{
|
||||
_backlight_power = power;
|
||||
// update_backlight(true);
|
||||
update_backlight(false);
|
||||
update_backlight(true);
|
||||
}
|
||||
|
||||
bool Esp32Device::get_backlight_power()
|
||||
|
Loading…
x
Reference in New Issue
Block a user