Skip to content

Commit

Permalink
remove topic from autosleep
Browse files Browse the repository at this point in the history
  • Loading branch information
lunixbochs committed Mar 6, 2018
1 parent aaa834f commit 9fb74f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autosleep.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from talon.engine import engine

def on_status(topic, j):
def on_status(j):
if j['cmd'] == 'mic' and j['status'] == 'on':
print('mic turned on, mimic "go to sleep"')
engine.mimic('go to sleep')
Expand Down

0 comments on commit 9fb74f0

Please sign in to comment.