X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=official%2Fdouble-tap.groovy;h=401b2a5d2f3aa4a967fe42213f8e26a8864ef356;hb=08ec5460378bc1dcca2c06f6de328b5cb612e90d;hp=9cc290ef312e1b7419e2f26e8cf7f01d9aa6b000;hpb=7eef0b114f26124ec7348ed52204ac2995b57e14;p=smartapps.git 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) {