something...

This commit is contained in:
Kavish Devar
2024-09-27 14:01:32 +05:30
parent 169cd334d7
commit d5f62751d6
2 changed files with 4 additions and 4 deletions

View File

@@ -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':

View File

@@ -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()
# thread.stop()