Skip to content

Commit

Permalink
finish implementing shut-down behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
jvantuyl committed May 11, 2014
1 parent 52348b9 commit 063da8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jarvis.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def check_sleep(words):


def sleep():
while True:
while not exit_flag:
try:
mic = microphone.Microphone()
a, s_data = mic.listen()
Expand All @@ -39,7 +39,7 @@ def sleep():


def wakeup():
while True:
while not exit_flag:
mic = microphone.Microphone()
a, s_data = mic.listen()
a = 0
Expand Down

0 comments on commit 063da8f

Please sign in to comment.