Fixed some errors with my dectalk protocol implementation. Thanks Codex. :)

This commit is contained in:
Storm Dragon
2026-07-26 20:59:14 -04:00
parent 9ac2e9e844
commit 11a4244cc3
3 changed files with 3 additions and 3 deletions
@@ -23,7 +23,7 @@ class driver(hardware_serial_driver):
return self._setting_command("dv ap", self._scale(pitch, 50, 350))
def _volume_command(self, volume):
return self._setting_command("vo", self._scale(volume, 0, 100))
return self._setting_command("dv g5", self._scale(volume, 60, 86))
def _setting_command(self, command, value):
return f"[:{command} {value}]".encode("ascii")