Update double-tap.groovy
[smartapps.git] / official / double-tap.groovy
index 596d4941b440c6671fc072fde06748e1dfd2dca5..766b1d4d12b2140ed66b9d0281919eb796991145 100755 (executable)
@@ -60,10 +60,10 @@ def switchHandler(evt) {
        if (evt.physical) {
                if (evt.value == "on" && lastTwoStatesWere("on", recentStates, evt)) {
                        log.debug "detected two taps, turn on other light(s)"
-                       onSwitches()*.on()
+                       onSwitches1()*.on()
                } else if (evt.value == "off" && lastTwoStatesWere("off", recentStates, evt)) {
                        log.debug "detected two taps, turn off other light(s)"
-                       offSwitches()*.off()
+                       offSwitches1()*.off()
                }
        }
        else {
@@ -71,11 +71,11 @@ def switchHandler(evt) {
        }
 }
 
-private onSwitches() {
+private onSwitches1() {
        (switches + onSwitches).findAll{it}
 }
 
-private offSwitches() {
+private offSwitches1() {
        (switches + offSwitches).findAll{it}
 }