Update embassy-boot/boot/src/firmware_updater/blocking.rs
This commit is contained in:
parent
48c802859f
commit
46fca02b82
@ -187,9 +187,9 @@ impl<'d, DFU: NorFlash, STATE: NorFlash> BlockingFirmwareUpdater<'d, DFU, STATE>
|
||||
//assert!(data.len() >= DFU::ERASE_SIZE);
|
||||
self.state.verify_booted()?;
|
||||
|
||||
//self.dfu.erase(offset as u32, (offset + data.len()) as u32)?;
|
||||
self.dfu.erase(offset as u32, (offset + DFU::ERASE_SIZE) as u32)?;
|
||||
|
||||
if self.dfu.write(offset as u32 + 0x08100000, data).is_err() {
|
||||
if self.dfu.write(offset as u32, data).is_err() {
|
||||
panic!("range: {:?}", offset..offset+data.len());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user