From 100acc5664eacb1cf709eb7d7bb4c45e43bfd6c6 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Sat, 14 Mar 2020 14:54:11 +0100 Subject: [PATCH] Fix switch status --- tasmota/support_switch.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasmota/support_switch.ino b/tasmota/support_switch.ino index 7acdda409..f1d5c7ea2 100644 --- a/tasmota/support_switch.ino +++ b/tasmota/support_switch.ino @@ -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]; }