Skip to content

Commit 44c65ff

Browse files
committed
fix erease timeout not being used for compressed flashing
1 parent a153177 commit 44c65ff

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

espflash/src/flasher.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ impl Command {
7171
)
7272
}
7373
match self {
74-
Command::FlashBegin => calc_timeout(ERASE_REGION_TIMEOUT_PER_MB, size),
74+
Command::FlashBegin | Command::FlashDeflateBegin => {
75+
calc_timeout(ERASE_REGION_TIMEOUT_PER_MB, size)
76+
}
7577
Command::FlashData | Command::FlashDeflateData => {
7678
calc_timeout(ERASE_WRITE_TIMEOUT_PER_MB, size)
7779
}

0 commit comments

Comments
 (0)