Skip to content

Commit

Permalink
bl2: don't reduce timeout in echo
Browse files Browse the repository at this point in the history
Otherwise it clears the 2S UART timeout during FIP upload.

Signed-off-by: Chuanhong Guo <[email protected]>
  • Loading branch information
981213 committed Mar 2, 2024
1 parent 3090bd5 commit 09ecc3f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/bl2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ impl BL2 {

fn echo(&mut self, buf: &[u8]) {
let mut rx_buf: Vec<u8> = vec![0; buf.len()];
self.port.set_timeout(Duration::from_millis(100)).unwrap();
self.port.write_all(buf).expect("failed to write to port.");
self.port.read_exact(rx_buf.as_mut_slice()).unwrap();
if buf != rx_buf {
Expand Down

0 comments on commit 09ecc3f

Please sign in to comment.