From da7c57748648e786c99621271b5a88d11bcd90fa Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Mon, 8 May 2023 16:43:25 -0700 Subject: [PATCH] spi dfu: fast timeout for header (#1407) --- python/spi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/spi.py b/python/spi.py index c098ebbb..c753bf4d 100644 --- a/python/spi.py +++ b/python/spi.py @@ -228,7 +228,7 @@ class STBootloaderSPIHandle(BaseSTBootloaderHandle): # sync + command spi.xfer([self.SYNC, ]) spi.xfer([cmd, cmd ^ 0xFF]) - self._get_ack(spi) + self._get_ack(spi, timeout=0.1) # "predata" - for commands that send the first data without a checksum if predata is not None: