From d5f62751d6ac51493a920a50a32cf2b01ce6857e Mon Sep 17 00:00:00 2001 From: Kavish Devar Date: Fri, 27 Sep 2024 14:01:32 +0530 Subject: [PATCH] something... --- main.py | 2 +- standalone.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index 088e48f..4dbd9bc 100644 --- a/main.py +++ b/main.py @@ -48,7 +48,7 @@ class ConsoleHandler(logging.StreamHandler): sys.stdout.write('Select ANC Mode: ') sys.stdout.flush() -def input_thread(connection): +def input_thread(connection: Connection): while True: anc_mode = input() if anc_mode == '1': diff --git a/standalone.py b/standalone.py index dd84207..499acf3 100644 --- a/standalone.py +++ b/standalone.py @@ -13,7 +13,7 @@ class initL2CAP(): earStatus = "" wasMusicPlayingInBoth = False wasMusicPlayingInSingle = False - + def pauseMusic(self): subprocess.call(("playerctl", "pause", "--ignore-player", "OnePlus_7")) @@ -24,7 +24,7 @@ class initL2CAP(): return subprocess.check_output(("playerctl", "status", "--ignore-player", "OnePlus_7")).decode("utf-8").strip() # Change to MAC address of your AirPods - + connected = False cmd_off = b"\x04\x00\x04\x00\x09\x00\x0d\x01\x00\x00\x00" @@ -320,4 +320,4 @@ mediaListener() # thread = threading.Thread(target=mediaListener) # thread.start() -# thread.stop() \ No newline at end of file +# thread.stop()