summaryrefslogtreecommitdiff
path: root/kvmd/plugins
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2023-05-29 22:40:30 +0300
committerMaxim Devaev <[email protected]>2023-07-10 03:02:28 +0300
commitee9ff3cd468e3f285876d469f194463a3ac624c1 (patch)
treeb226f67270bb629bbd53f8e2c9adb8cd8bb8e23d /kvmd/plugins
parent5794da2c51bf7cd280a02cdce2b1d1f4a6d46a83 (diff)
ch9329: fixed checksum
Diffstat (limited to 'kvmd/plugins')
-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: