- fix error in BT call controller
This commit is contained in:
@@ -99,10 +99,10 @@ def answer_call(play_file: str):
|
||||
utils.log('Waiting for incoming call...')
|
||||
|
||||
# Wait for incoming call
|
||||
while not CALL_ADDED.value and not INTERRUPT_SIGNAL.value():
|
||||
while not CALL_ADDED.value and not INTERRUPT_SIGNAL.value:
|
||||
time.sleep(0.01)
|
||||
|
||||
if INTERRUPT_SIGNAL.value():
|
||||
if INTERRUPT_SIGNAL.value:
|
||||
utils.log(f'Interrupt signal detected, exiting.')
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user