From ee9ff3cd468e3f285876d469f194463a3ac624c1 Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Mon, 29 May 2023 22:40:30 +0300 Subject: ch9329: fixed checksum --- kvmd/plugins/hid/ch9329/chip.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: -- cgit v1.2.3