Merge pull request #16195 from pcdiem/pwm-dimmer-5

Set LED state on SO87 change
This commit is contained in:
Theo Arends 2022-08-11 10:24:54 +02:00 committed by GitHub
commit 4250c1ac7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -1386,6 +1386,11 @@ void CmndSetoptionBase(bool indexed) {
case 25: // SetOption107 - Virtual CT Channel - signals whether the hardware white is cold CW (true) or warm WW (false) case 25: // SetOption107 - Virtual CT Channel - signals whether the hardware white is cold CW (true) or warm WW (false)
TasmotaGlobal.restart_flag = 2; TasmotaGlobal.restart_flag = 2;
break; break;
#ifdef USE_PWM_DIMMER
case 5: // SetOption87 - (PWM Dimmer) Turn red LED on (1) when powered off
TasmotaGlobal.restore_powered_off_led_counter = 1;
break;
#endif // USE_PWM_DIMMER
} }
} }
else if (5 == ptype) { // SetOption114 .. 145 else if (5 == ptype) { // SetOption114 .. 145