diff --git a/tasmota/support_tasmota.ino b/tasmota/support_tasmota.ino index 14d68b57b..6304562b9 100644 --- a/tasmota/support_tasmota.ino +++ b/tasmota/support_tasmota.ino @@ -490,7 +490,7 @@ bool SendKey(uint32_t key, uint32_t device, uint32_t state) result = XdrvRulesProcess(); } #ifdef USE_PWM_DIMMER - if (PWM_DIMMER == TasmotaGlobal.module_type && !result) { + if (PWM_DIMMER != TasmotaGlobal.module_type || !result) { #endif // USE_PWM_DIMMER int32_t payload_save = XdrvMailbox.payload; XdrvMailbox.payload = device_save << 24 | key << 16 | state << 8 | device;