summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kvmd/plugins/hid/ch9329/chip.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/plugins/hid/ch9329/chip.py b/kvmd/plugins/hid/ch9329/chip.py
index d883099b..e6524f10 100644
--- a/kvmd/plugins/hid/ch9329/chip.py
+++ b/kvmd/plugins/hid/ch9329/chip.py
@@ -44,8 +44,8 @@ class Chip:
if len(cmd) == 0:
cmd = b"\x00\x01\x00"
cmd = b"\x57\xAB" + cmd
- cmd += self.__make_checksum(cmd).to_bytes()
- self.__tty.write(serial.to_bytes(cmd))
+ cmd += self.__make_checksum(cmd).to_bytes(1, "big")
+ self.__tty.write(cmd)
def __recv(self) -> int:
data = self.__tty.read(5)