From db4512678a14c73cac2a73bbc18e16e02d08d385 Mon Sep 17 00:00:00 2001 From: Dmytro Bogovych Date: Tue, 5 Sep 2023 17:40:28 +0300 Subject: [PATCH] - fix error in BT call controller --- src/bt_call_controller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bt_call_controller.py b/src/bt_call_controller.py index b9c9938..3b5cddb 100644 --- a/src/bt_call_controller.py +++ b/src/bt_call_controller.py @@ -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