Skip to content

Commit

Permalink
Add a long timeout for setting boot component
Browse files Browse the repository at this point in the history
Setting the stage0 boot component involves writing to flash which
requires a longer timeout
  • Loading branch information
labbott committed Jun 12, 2024
1 parent ceb2908 commit b0d962e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions drv/stm32h7-sprot-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1332,11 +1332,8 @@ impl<S: SpiServer> idl::InOrderSpRotImpl for ServerImpl<S> {
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 {
Expand Down

0 comments on commit b0d962e

Please sign in to comment.