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.write('Select ANC Mode: ')
sys.stdout.flush() sys.stdout.flush()
def input_thread(connection): def input_thread(connection: Connection):
while True: while True:
anc_mode = input() anc_mode = input()
if anc_mode == '1': if anc_mode == '1':

View File

@@ -13,7 +13,7 @@ class initL2CAP():
earStatus = "" earStatus = ""
wasMusicPlayingInBoth = False wasMusicPlayingInBoth = False
wasMusicPlayingInSingle = False wasMusicPlayingInSingle = False
def pauseMusic(self): def pauseMusic(self):
subprocess.call(("playerctl", "pause", "--ignore-player", "OnePlus_7")) 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() return subprocess.check_output(("playerctl", "status", "--ignore-player", "OnePlus_7")).decode("utf-8").strip()
# Change to MAC address of your AirPods # Change to MAC address of your AirPods
connected = False connected = False
cmd_off = b"\x04\x00\x04\x00\x09\x00\x0d\x01\x00\x00\x00" 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 = threading.Thread(target=mediaListener)
# thread.start() # thread.start()
# thread.stop() # thread.stop()