From: Seyed Amir Hossein Aqajari Date: Tue, 6 Aug 2019 19:24:24 +0000 (-0700) Subject: Update double-tap.groovy X-Git-Url: http://plrg.eecs.uci.edu/git/?p=smartapps.git;a=commitdiff_plain;h=b9cac78d82734f4b909691ea1a3e086eb7697ef5;hp=7eef0b114f26124ec7348ed52204ac2995b57e14;ds=sidebyside Update double-tap.groovy --- 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) {