Fixed some errors with my dectalk protocol implementation. Thanks Codex. :)
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user