X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=third-party%2FFireCO2Alarm.groovy;h=2340dcd0c8a96d9b815620407aa2ccc39f9fa767;hb=4b517a0b61d63aa11f8b7c88686fb3860da37fb3;hp=c87b152b8e47192e2b181c7683e4fe520dbab2ca;hpb=9303fda38575b957bc1690f0edd19c0564c2e0a7;p=smartapps.git diff --git a/third-party/FireCO2Alarm.groovy b/third-party/FireCO2Alarm.groovy index c87b152..2340dcd 100755 --- a/third-party/FireCO2Alarm.groovy +++ b/third-party/FireCO2Alarm.groovy @@ -457,7 +457,7 @@ private flashLights() { def initialActionOn = switches.collect { it.currentSwitch != "on" } - def delay = 1 L + def delay = 1 numFlashes.times { log.trace "Switch on after $delay msec" switches.eachWithIndex { @@ -486,7 +486,7 @@ private flashLights() { } private send(msg) { - if (sendPushMessage != "No") { + /*if (sendPushMessage != "No") { log.debug("sending push message") sendPush(msg) } @@ -494,6 +494,6 @@ private send(msg) { if (phoneNumber) { log.debug("sending text message") sendSms(phoneNumber, msg) - } + }*/ log.debug msg }