diff --git a/espflash/src/image_format/esp32bootloader.rs b/espflash/src/image_format/esp32bootloader.rs index 132789a2..be0e4dfc 100644 --- a/espflash/src/image_format/esp32bootloader.rs +++ b/espflash/src/image_format/esp32bootloader.rs @@ -180,7 +180,7 @@ impl<'a> Esp32BootloaderFormat<'a> { let perc = data.len() as f32 / part.size as f32 * 100.0; println!("App/part. size: {}/{} bytes, {:.2}%", data.len(), part.size,perc); - if perc >= 1f32 { + if perc > 100.0 { return Err(Error::ElfTooBig); }