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 9cc290e..401b2a5 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) {