mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 11:46:34 +00:00
Fix Dim command
This commit is contained in:
parent
720ce0409a
commit
3573c94d81
@ -434,7 +434,7 @@ void guiSetDim(uint8_t level)
|
||||
guiDimLevel = level >= 0 ? level : 0;
|
||||
guiDimLevel = guiDimLevel <= 100 ? guiDimLevel : 100;
|
||||
|
||||
if(guiBacklightIsOn) { // The backlight is ON
|
||||
if(true || guiBacklightIsOn) { // The backlight is ON
|
||||
#if defined(ARDUINO_ARCH_ESP32)
|
||||
ledcWrite(99, map(guiDimLevel, 0, 100, 0, 1023)); // ledChannel and value
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user