Update embassy-boot/boot/src/firmware_updater/blocking.rs
This commit is contained in:
parent
25aba4bb68
commit
96acde1096
@ -185,11 +185,11 @@ impl<'d, DFU: NorFlash, STATE: NorFlash> BlockingFirmwareUpdater<'d, DFU, STATE>
|
||||
/// Failing to meet alignment and size requirements may result in a panic.
|
||||
pub fn write_firmware(&mut self, offset: usize, data: &[u8]) -> Result<(), FirmwareUpdaterError> {
|
||||
//assert!(data.len() >= DFU::ERASE_SIZE);
|
||||
//self.state.verify_booted()?;
|
||||
self.state.verify_booted()?;
|
||||
|
||||
//self.dfu.erase(offset as u32, (offset + data.len()) as u32)?;
|
||||
|
||||
self.dfu.write(offset as u32, data)?;
|
||||
self.dfu.write(offset as u32 - 0x08040000, data)?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user