Merge pull request #9700 from emontnemery/patch-1

Fix regression introduced by #9589
This commit is contained in:
Theo Arends 2020-11-01 18:03:01 +01:00 committed by GitHub
commit fc7cea3b84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;