summaryrefslogtreecommitdiff
path: root/kvmd/plugins
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-11-12 20:49:33 +0300
committerDevaev Maxim <[email protected]>2020-11-12 20:49:33 +0300
commit0984f0cb36c5881669010c62e986cc8bc7fe019a (patch)
tree784ab50c3e8baaf766b72dfd6c33e3806b05dd95 /kvmd/plugins
parent3d75acf7521a5780b63f3cab7dcfd5a4e778392d (diff)
fixed xfer answer
Diffstat (limited to 'kvmd/plugins')
-rw-r--r--kvmd/plugins/hid/spi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmd/plugins/hid/spi.py b/kvmd/plugins/hid/spi.py
index 7eaa447f..8af03483 100644
--- a/kvmd/plugins/hid/spi.py
+++ b/kvmd/plugins/hid/spi.py
@@ -81,7 +81,7 @@ class _SpiPhyConnection(BasePhyConnection):
deadline_ts = time.time() + self.__read_timeout
found = False
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 byte != 0x33:
continue