mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
multihid firmware
This commit is contained in:
@@ -51,7 +51,10 @@ class _SerialPhyConnection(BasePhyConnection):
|
||||
if self.__tty.in_waiting:
|
||||
self.__tty.read_all()
|
||||
assert self.__tty.write(request) == 8
|
||||
return self.__tty.read(4)
|
||||
data = self.__tty.read(4)
|
||||
if data[0] == 0x34: # New response protocol
|
||||
data += self.__tty.read(4)
|
||||
return data
|
||||
|
||||
|
||||
class _SerialPhy(BasePhy):
|
||||
|
||||
Reference in New Issue
Block a user