Update double-tap.groovy
authorSeyed Amir Hossein Aqajari <amiraj.95@uci.edu>
Tue, 6 Aug 2019 19:24:24 +0000 (12:24 -0700)
committerGitHub Enterprise <noreply@github.uci.edu>
Tue, 6 Aug 2019 19:24:24 +0000 (12:24 -0700)
official/double-tap.groovy

index 9cc290ef312e1b7419e2f26e8cf7f01d9aa6b000..401b2a5d2f3aa4a967fe42213f8e26a8864ef356 100755 (executable)
@@ -72,11 +72,17 @@ def switchHandler(evt) {
 }
 
 private onSwitches1() {
 }
 
 private onSwitches1() {
-       (switches + onSwitches).findAll{it}
+       def t1 = (switches).findAll{it}
+       def t2 = (onSwitches).findAll{it}
+       def t3 = t1+t2
+       t3
 }
 }
-
+       
 private offSwitches1() {
 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) {
 }
 
 private lastTwoStatesWere(value, states, evt) {