From e363689777d45048fa08b4cb06d0f47daae12e30 Mon Sep 17 00:00:00 2001 From: Kavish Devar Date: Fri, 27 Sep 2024 03:11:11 +0530 Subject: [PATCH] fix: input not resetting after pressing enter --- main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.py b/main.py index 8cfb7ec..77e491b 100644 --- a/main.py +++ b/main.py @@ -51,12 +51,16 @@ def input_thread(connection): anc_mode = input() if anc_mode == '1': connection.send(enums.SET_NOISE_CANCELLATION_OFF) + logging.info('ANC Off') elif anc_mode == '2': connection.send(enums.SET_NOISE_CANCELLATION_TRANSPARENCY) + logging.info('Transparency On') elif anc_mode == '3': connection.send(enums.SET_NOISE_CANCELLATION_ADAPTIVE) + logging.info('Adaptive Transparency On') elif anc_mode == '4': connection.send(enums.SET_NOISE_CANCELLATION_ON) + logging.info('ANC On') else: logging.error('Invalid ANC Mode')