Skip to content

Commit

Permalink
Fixed off button bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kentra committed Feb 23, 2017
1 parent 2418f6c commit 396caae
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/ambibox.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ def setColor(red='255', green='0', blue='100', num=206):
def disconnect(num=206):
payload = 'setcolor:'
for i in range(1, num):
payload += str(i) + '-0,0,0;'
payload += str(i) + '-000,000,000;'
tn.write(payload.encode())
tn.write(b'\n')
#tn.write(b'unlock\n')
#tn.write(b'exit\n')
#tn.close()
time.sleep(1)
tn.write(b'unlock\n')
tn.write(b'exit\n')
tn.close()

def ping():
try:
Expand Down

0 comments on commit 396caae

Please sign in to comment.