summaryrefslogtreecommitdiff
path: root/kvmd/plugins/hid/ch9329/chip.py
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd/plugins/hid/ch9329/chip.py')
-rw-r--r--kvmd/plugins/hid/ch9329/chip.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/kvmd/plugins/hid/ch9329/chip.py b/kvmd/plugins/hid/ch9329/chip.py
index df6292ad..8f038042 100644
--- a/kvmd/plugins/hid/ch9329/chip.py
+++ b/kvmd/plugins/hid/ch9329/chip.py
@@ -43,7 +43,8 @@ class Chip:
# GET_INFO = [0x00,0x01,0x00]
if len(cmd) == 0:
cmd = [0x00, 0x01, 0x00]
- cmd = [0x57, 0xAB, *cmd, self.__make_checksum(cmd)]
+ cmd = [0x57, 0xAB] + cmd
+ cmd.append(self.__make_checksum(cmd))
self.__tty.write(serial.to_bytes(cmd))
def __recv(self) -> int: