def delay = 1L
numFlashes.times {
log.trace "Switch on after $delay msec"
- switches.each {s, i ->
+ switches.eachWithIndex {s, i ->
if (initialActionOn[i]) {
s.on(delay: delay)
}
s.off(delay:delay)
}
}
- delay += onFor
+ /*delay += onFor
log.trace "Switch off after $delay msec"
- switches.each {s, i ->
+ switches.eachWithIndex {s, i ->
if (initialActionOn[i]) {
s.off(delay: delay)
}
s.on(delay:delay)
}
}
- delay += offFor
+ delay += offFor*/
}
}
}