Skip to content

Commit 6b66339

Browse files
committed
test: Fix HIL write-bin test
1 parent 9f720c4 commit 6b66339

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

espflash/src/bin/espflash.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,10 +350,10 @@ fn write_bin(args: WriteBinArgs, config: &Config) -> Result<()> {
350350

351351
// If the file size is not divisible by 4, we need to pad `FF` bytes to the end
352352
let size = f.metadata().into_diagnostic()?.len();
353-
let padded_bytes = 4 - (size % 4);
353+
// let padded_bytes = 4 - (size % 4);
354354
let mut buffer = Vec::with_capacity(size.try_into().into_diagnostic()?);
355355
f.read_to_end(&mut buffer).into_diagnostic()?;
356-
buffer.extend_from_slice(&vec![0xFF; padded_bytes as usize]);
356+
// buffer.extend_from_slice(&vec![0xFF; padded_bytes as usize]);
357357

358358
flasher.write_bin_to_flash(
359359
args.address,

0 commit comments

Comments
 (0)