aboutsummaryrefslogtreecommitdiff
path: root/embassy-boot/boot
diff options
context:
space:
mode:
authorKaitlyn Kenwell <[email protected]>2023-12-14 09:38:02 -0500
committerKaitlyn Kenwell <[email protected]>2023-12-14 09:38:02 -0500
commitc1438fe87bf363b018231bd36e188c72679eb202 (patch)
treed15af0e07295994c1ead4037e8a26f9853af6a49 /embassy-boot/boot
parente27e00f6280683293f427d0731aa69ca32dbbe60 (diff)
fmt
Diffstat (limited to 'embassy-boot/boot')
-rw-r--r--embassy-boot/boot/src/firmware_updater/blocking.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-boot/boot/src/firmware_updater/blocking.rs b/embassy-boot/boot/src/firmware_updater/blocking.rs
index 4f56f152d..c4c142169 100644
--- a/embassy-boot/boot/src/firmware_updater/blocking.rs
+++ b/embassy-boot/boot/src/firmware_updater/blocking.rs
@@ -220,9 +220,9 @@ pub struct BlockingFirmwareState<'d, STATE> {
220 220
221impl<'d, STATE: NorFlash> BlockingFirmwareState<'d, STATE> { 221impl<'d, STATE: NorFlash> BlockingFirmwareState<'d, STATE> {
222 /// Creates a firmware state instance from a FirmwareUpdaterConfig, with a buffer for magic content and state partition. 222 /// Creates a firmware state instance from a FirmwareUpdaterConfig, with a buffer for magic content and state partition.
223 /// 223 ///
224 /// # Safety 224 /// # Safety
225 /// 225 ///
226 /// The `aligned` buffer must have a size of STATE::WRITE_SIZE, and follow the alignment rules for the flash being read from 226 /// The `aligned` buffer must have a size of STATE::WRITE_SIZE, and follow the alignment rules for the flash being read from
227 /// and written to. 227 /// and written to.
228 pub fn from_config<DFU: NorFlash>(config: FirmwareUpdaterConfig<DFU, STATE>, aligned: &'d mut [u8]) -> Self { 228 pub fn from_config<DFU: NorFlash>(config: FirmwareUpdaterConfig<DFU, STATE>, aligned: &'d mut [u8]) -> Self {