Skip to content

Commit

Permalink
Update lockcontrol.groovy
Browse files Browse the repository at this point in the history
Fix loop counter to execute 5 iterations instead of 4. (user 6 was always skipped)
  • Loading branch information
daytonturner committed Feb 2, 2016
1 parent 47e76a8 commit 3fc5ee7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Bonus Apps/lockcontrol.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def appTouch(evt) {
def deletes = [delete1,delete2,delete3,delete4,delete5,delete6]

for (lock in locks) {
for (int i = 0; i < 5; i++) {
for (int i = 0; i < 6; i++) {
def lockcode = codes[i]
def lockdelete = deletes[i]
def idstatus = 1
Expand Down Expand Up @@ -122,4 +122,4 @@ def userunlock(evt){
sendSms(phone1,msg)
}
log.debug "Event User?: ${evt.user}"
}
}

0 comments on commit 3fc5ee7

Please sign in to comment.