Update laundry-monitor.groovy
authorSeyed Amir Hossein Aqajari <amiraj.95@uci.edu>
Sat, 10 Aug 2019 20:23:14 +0000 (13:23 -0700)
committerGitHub Enterprise <noreply@github.uci.edu>
Sat, 10 Aug 2019 20:23:14 +0000 (13:23 -0700)
official/laundry-monitor.groovy

index 323b455..c71cbd5 100755 (executable)
@@ -138,9 +138,9 @@ def checkRunning() {
 
 private flashLights() {
        def doFlash = true
-       def onFor = onFor ?: 1000
-       def offFor = offFor ?: 1000
-       def numFlashes = numFlashes ?: 3
+       def onFor = 1000
+       def offFor = 1000
+       def numFlashes = 3
 
        log.debug "LAST ACTIVATED IS: ${state.lastActivated}"
        if (state.lastActivated) {