Skip to content

Commit 16f1173

Browse files
committed
merge loops
1 parent f4454e2 commit 16f1173

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

espflash/src/flasher.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -252,12 +252,10 @@ impl Flasher {
252252

253253
Ok(())
254254
})?;
255-
for _ in 0..7 {
256-
for _ in 0..100 {
257-
match self.connection.read_response()? {
258-
Some(_) => break,
259-
_ => continue,
260-
}
255+
for _ in 0..700 {
256+
match self.connection.read_response()? {
257+
Some(_) => break,
258+
_ => continue,
261259
}
262260
}
263261
Ok(())

0 commit comments

Comments
 (0)