From ed8058b3e22f1081279fda6c328c84a9f4222276 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Sun, 1 Nov 2020 17:52:10 +0100 Subject: [PATCH] Attempt to fix regression introduced by #9589 --- tasmota/support_tasmota.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;