From b0d962e627e179e3bcd3298a07d535699dc0b5ec Mon Sep 17 00:00:00 2001 From: Laura Abbott Date: Tue, 11 Jun 2024 14:03:26 -0400 Subject: [PATCH] Add a long timeout for setting boot component Setting the stage0 boot component involves writing to flash which requires a longer timeout --- drv/stm32h7-sprot-server/src/main.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drv/stm32h7-sprot-server/src/main.rs b/drv/stm32h7-sprot-server/src/main.rs index 59b9d4b4b..7910bbb16 100644 --- a/drv/stm32h7-sprot-server/src/main.rs +++ b/drv/stm32h7-sprot-server/src/main.rs @@ -1332,11 +1332,8 @@ impl idl::InOrderSpRotImpl for ServerImpl { duration, }); let tx_size = Request::pack(&body, self.tx_buf); - let rsp = self.do_send_recv_retries( - tx_size, - TIMEOUT_QUICK, - DEFAULT_ATTEMPTS, - )?; + let rsp = + self.do_send_recv_retries(tx_size, TIMEOUT_LONG, DEFAULT_ATTEMPTS)?; if let RspBody::Ok = rsp.body? { Ok(()) } else {