Update double-tap.groovy
[smartapps.git] / official / double-tap.groovy
index 9cc290ef312e1b7419e2f26e8cf7f01d9aa6b000..401b2a5d2f3aa4a967fe42213f8e26a8864ef356 100755 (executable)
@@ -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) {