spi dfu: fast timeout for header (#1407)

This commit is contained in:
Adeeb Shihadeh
2023-05-08 16:43:25 -07:00
committed by GitHub
parent 98a15f2a90
commit da7c577486

View File

@@ -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: