Skip to content

Commit

Permalink
Don't respond to MEM like real device
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdwetering committed Mar 10, 2024
1 parent fa3e092 commit d2dc211
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ynca/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,11 @@ def handle_put(self, subunit, function, value):
if len(value) != 8:
self.write_line(UNDEFINED)
return

# MEM does not seem to generate a response
# assume it was supported for the subunit
if function == "MEM":
return

if function == "VOL" and value.startswith("Up") or value.startswith("Down"):
# Need to handle Up/Down as it would otherwise overwrite the VOL value wtih text Up/Down
Expand Down

0 comments on commit d2dc211

Please sign in to comment.