Skip to content

Commit 0b8f61b

Browse files
ryankurtemertzt89
andcommitted
Disable encryption when using stub
Co-authored-by: Timothy Mertz <mertzt89@gmail.com>
1 parent 4297771 commit 0b8f61b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

espflash/src/flash_target/esp32.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ impl FlashTarget for Esp32Target {
108108
blocks: block_count as u32,
109109
block_size: FLASH_WRITE_SIZE as u32,
110110
offset: addr,
111-
supports_encryption: self.chip != Chip::Esp32,
111+
supports_encryption: self.chip != Chip::Esp32 && !self.use_stub,
112112
})?;
113113
Ok(())
114114
},

0 commit comments

Comments
 (0)