Skip to content

Commit

Permalink
Make FlasherSize::from_detected public (#530)
Browse files Browse the repository at this point in the history
  • Loading branch information
MabezDev authored Dec 14, 2023
1 parent ba49cbb commit a8ce6d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion espflash/src/flasher/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ impl FlashSize {
/// Create a [FlashSize] from an [u8]
///
/// [source](https://github.com/espressif/esptool/blob/f4d2510e2c897621884f433ef3f191e8fc5ff184/esptool/cmds.py#L42)
const fn from_detected(value: u8) -> Result<FlashSize, Error> {
pub const fn from_detected(value: u8) -> Result<FlashSize, Error> {
match value {
0x12 | 0x32 => Ok(FlashSize::_256Kb),
0x13 | 0x33 => Ok(FlashSize::_512Kb),
Expand Down

0 comments on commit a8ce6d9

Please sign in to comment.