Skip to content

Commit

Permalink
Volume commands fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
DoofenCorp committed Aug 16, 2023
1 parent 87c86ef commit d8fdd6c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,13 @@ async def connection():
async def Send_command_Get_output(command):
if "screen" in command:
command = "fullscreen"
if "quit" in command:
command = "quit"
if command == "quit":
writer.write(command + "\n")
if "volume" in command:
if "increase" in command:
command = "volup 2"
elif "decrease" in command:
command = "voldown 2"
if command == "stop listening":
writer.write("quit" + "\n")
print(await (reader.readuntil()))
writer.close()
raise LoopBreakException(
Expand Down

0 comments on commit d8fdd6c

Please sign in to comment.