Skip to content

Commit a8ce6d9

Browse files
authored
Make FlasherSize::from_detected public (#530)
1 parent ba49cbb commit a8ce6d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

espflash/src/flasher/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ impl FlashSize {
203203
/// Create a [FlashSize] from an [u8]
204204
///
205205
/// [source](https://github.com/espressif/esptool/blob/f4d2510e2c897621884f433ef3f191e8fc5ff184/esptool/cmds.py#L42)
206-
const fn from_detected(value: u8) -> Result<FlashSize, Error> {
206+
pub const fn from_detected(value: u8) -> Result<FlashSize, Error> {
207207
match value {
208208
0x12 | 0x32 => Ok(FlashSize::_256Kb),
209209
0x13 | 0x33 => Ok(FlashSize::_512Kb),

0 commit comments

Comments
 (0)