mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 17:20:30 +08:00
fixed xfer answer
This commit is contained in:
parent
3d75acf752
commit
0984f0cb36
@ -81,7 +81,7 @@ class _SpiPhyConnection(BasePhyConnection):
|
|||||||
deadline_ts = time.time() + self.__read_timeout
|
deadline_ts = time.time() + self.__read_timeout
|
||||||
found = False
|
found = False
|
||||||
while time.time() < deadline_ts:
|
while time.time() < deadline_ts:
|
||||||
for byte in self.__xfer(b"\x00" * (4 - len(response))):
|
for byte in self.__xfer(b"\x00" * (5 - len(response))):
|
||||||
if not found:
|
if not found:
|
||||||
if byte != 0x33:
|
if byte != 0x33:
|
||||||
continue
|
continue
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user