diff options
| author | Mathias <[email protected]> | 2022-09-26 10:36:21 +0200 |
|---|---|---|
| committer | Mathias <[email protected]> | 2022-09-26 10:36:21 +0200 |
| commit | 6fa74b0c022c41c9ac6dd0b937ef402846cbdfae (patch) | |
| tree | 8784d74280e9bae990a9054c0a30cf84e250ce90 /embassy-boot/boot/src/lib.rs | |
| parent | b2a327a85884f822d011964bcd44b463b301467f (diff) | |
make prepare_update async
Diffstat (limited to 'embassy-boot/boot/src/lib.rs')
| -rw-r--r-- | embassy-boot/boot/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-boot/boot/src/lib.rs b/embassy-boot/boot/src/lib.rs index 6f22d08ea..8286601ec 100644 --- a/embassy-boot/boot/src/lib.rs +++ b/embassy-boot/boot/src/lib.rs | |||
| @@ -700,8 +700,8 @@ impl FirmwareUpdater { | |||
| 700 | /// | 700 | /// |
| 701 | /// Using this instead of `write_firmware` allows for an optimized API in | 701 | /// Using this instead of `write_firmware` allows for an optimized API in |
| 702 | /// exchange for added complexity. | 702 | /// exchange for added complexity. |
| 703 | pub fn prepare_update<F: NorFlash>(&mut self, flash: &mut F) -> Result<FirmwareWriter, F::Error> { | 703 | pub async fn prepare_update<F: AsyncNorFlash>(&mut self, flash: &mut F) -> Result<FirmwareWriter, F::Error> { |
| 704 | flash.erase((self.dfu.from) as u32, (self.dfu.to) as u32)?; | 704 | flash.erase((self.dfu.from) as u32, (self.dfu.to) as u32).await?; |
| 705 | 705 | ||
| 706 | trace!("Erased from {} to {}", self.dfu.from, self.dfu.to); | 706 | trace!("Erased from {} to {}", self.dfu.from, self.dfu.to); |
| 707 | 707 | ||
