mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-31 18:11:54 +08:00
fixed xfer answer
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user