We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
FlasherSize::from_detected
1 parent ba49cbb commit a8ce6d9Copy full SHA for a8ce6d9
espflash/src/flasher/mod.rs
@@ -203,7 +203,7 @@ impl FlashSize {
203
/// Create a [FlashSize] from an [u8]
204
///
205
/// [source](https://github.com/espressif/esptool/blob/f4d2510e2c897621884f433ef3f191e8fc5ff184/esptool/cmds.py#L42)
206
- const fn from_detected(value: u8) -> Result<FlashSize, Error> {
+ pub const fn from_detected(value: u8) -> Result<FlashSize, Error> {
207
match value {
208
0x12 | 0x32 => Ok(FlashSize::_256Kb),
209
0x13 | 0x33 => Ok(FlashSize::_512Kb),
0 commit comments