Fix switch status

This commit is contained in:
Theo Arends 2020-03-14 14:54:11 +01:00
parent d543255d0d
commit 100acc5664
1 changed files with 2 additions and 1 deletions

View File

@ -70,7 +70,8 @@ bool SwitchState(uint32_t index)
(PUSHBUTTON_INV == switchmode) ||
(PUSHBUTTONHOLD_INV == switchmode) ||
(FOLLOWMULTI_INV == switchmode) ||
(PUSHHOLDMULTI_INV == switchmode)
(PUSHHOLDMULTI_INV == switchmode) ||
(PUSHON_INV == switchmode)
) ^ Switch.last_state[index];
}