Update embassy-boot/boot/src/firmware_updater/blocking.rs

This commit is contained in:
Max Känner 2023-12-21 17:43:27 +01:00
parent ab18ba6d90
commit 343d6b99d4

View File

@ -187,9 +187,7 @@ impl<'d, DFU: NorFlash, STATE: NorFlash> BlockingFirmwareUpdater<'d, DFU, STATE>
//assert!(data.len() >= DFU::ERASE_SIZE);
self.state.verify_booted()?;
if offset == 0 {
self.dfu.erase(offset as u32, (offset + DFU::ERASE_SIZE) as u32)?;
}
//self.dfu.erase(offset as u32, (offset + data.len()) as u32)?;
self.dfu.write(offset as u32, data)?;