From b9cac78d82734f4b909691ea1a3e086eb7697ef5 Mon Sep 17 00:00:00 2001 From: Seyed Amir Hossein Aqajari Date: Tue, 6 Aug 2019 12:24:24 -0700 Subject: [PATCH 1/1] Update double-tap.groovy --- official/double-tap.groovy | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/official/double-tap.groovy b/official/double-tap.groovy index 9cc290e..401b2a5 100755 --- a/official/double-tap.groovy +++ b/official/double-tap.groovy @@ -72,11 +72,17 @@ def switchHandler(evt) { } private onSwitches1() { - (switches + onSwitches).findAll{it} + def t1 = (switches).findAll{it} + def t2 = (onSwitches).findAll{it} + def t3 = t1+t2 + t3 } - + private offSwitches1() { - (switches + offSwitches).findAll{it} + def t1 = (switches).findAll{it} + def t2 = (offSwitches).findAll{it} + def t3 = t1+t2 + t3 } private lastTwoStatesWere(value, states, evt) { -- 2.34.1