mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
ch9329: fixed checksum
This commit is contained in:
parent
5794da2c51
commit
ee9ff3cd46
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user