Skip to content

Commit

Permalink
fixup! Check (and display) app vs partition size before flashing
Browse files Browse the repository at this point in the history
  • Loading branch information
jendakol committed Sep 10, 2022
1 parent bfa100e commit ce36864
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion espflash/src/image_format/esp32bootloader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit ce36864

Please sign in to comment.