Update embassy-boot/boot/src/firmware_updater/blocking.rs
This commit is contained in:
parent
ecb018f51c
commit
cfa7f7aa02
@ -189,8 +189,9 @@ impl<'d, DFU: NorFlash, STATE: NorFlash> BlockingFirmwareUpdater<'d, DFU, STATE>
|
|||||||
|
|
||||||
//self.dfu.erase(offset as u32, (offset + data.len()) as u32)?;
|
//self.dfu.erase(offset as u32, (offset + data.len()) as u32)?;
|
||||||
|
|
||||||
|
if self.dfu.write(offset as u32, data).is_err() {
|
||||||
panic!("range: {:?}", offset..offset+data.len());
|
panic!("range: {:?}", offset..offset+data.len());
|
||||||
self.dfu.write(offset as u32, data)?;
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user