From 0984f0cb36c5881669010c62e986cc8bc7fe019a Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Thu, 12 Nov 2020 20:49:33 +0300 Subject: [PATCH] fixed xfer answer --- kvmd/plugins/hid/spi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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