Skip to content

Commit 8b7c4bc

Browse files
committed
Unneeded condition
1 parent 7957199 commit 8b7c4bc

File tree

1 file changed

+3
-9
lines changed
  • espflash/src/targets/flash_target

1 file changed

+3
-9
lines changed

espflash/src/targets/flash_target/esp32.rs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,11 @@ impl FlashTarget for Esp32Target {
6262
spi_params: self.spi_attach_params,
6363
}
6464
} else {
65-
if connection.secure_download_mode {
66-
Command::SpiAttach {
67-
spi_params: SpiAttachParams::default(),
68-
}
69-
} else {
70-
Command::SpiAttach {
71-
spi_params: self.spi_attach_params,
72-
}
65+
Command::SpiAttach {
66+
spi_params: self.spi_attach_params,
7367
}
7468
};
75-
69+
7670
connection.command(command)
7771
})?;
7872

0 commit comments

Comments
 (0)