diff options
| author | nerwalt <[email protected]> | 2024-07-15 11:33:53 -0600 |
|---|---|---|
| committer | nerwalt <[email protected]> | 2024-07-15 11:33:53 -0600 |
| commit | 2c3de1eeec44f807b240f28ca44d09eae8f72ca0 (patch) | |
| tree | 2436dc409a5d903b8bdcd693c95f186d607ee81e /embassy-boot/src | |
| parent | a978234cc57b9721f5a3cbc6419782c57bde23c7 (diff) | |
| parent | 4472e08bcaf0adbd5d87d55818a5b3ef3602abb1 (diff) | |
Merge branch 'main' into nrf9151
Diffstat (limited to 'embassy-boot/src')
| -rw-r--r-- | embassy-boot/src/boot_loader.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/embassy-boot/src/boot_loader.rs b/embassy-boot/src/boot_loader.rs index 789fa34c1..61d61b96e 100644 --- a/embassy-boot/src/boot_loader.rs +++ b/embassy-boot/src/boot_loader.rs | |||
| @@ -236,10 +236,10 @@ impl<ACTIVE: NorFlash, DFU: NorFlash, STATE: NorFlash> BootLoader<ACTIVE, DFU, S | |||
| 236 | /// | 236 | /// |
| 237 | pub fn prepare_boot(&mut self, aligned_buf: &mut [u8]) -> Result<State, BootError> { | 237 | pub fn prepare_boot(&mut self, aligned_buf: &mut [u8]) -> Result<State, BootError> { |
| 238 | const { | 238 | const { |
| 239 | assert!(Self::PAGE_SIZE % ACTIVE::WRITE_SIZE as u32 == 0); | 239 | core::assert!(Self::PAGE_SIZE % ACTIVE::WRITE_SIZE as u32 == 0); |
| 240 | assert!(Self::PAGE_SIZE % ACTIVE::ERASE_SIZE as u32 == 0); | 240 | core::assert!(Self::PAGE_SIZE % ACTIVE::ERASE_SIZE as u32 == 0); |
| 241 | assert!(Self::PAGE_SIZE % DFU::WRITE_SIZE as u32 == 0); | 241 | core::assert!(Self::PAGE_SIZE % DFU::WRITE_SIZE as u32 == 0); |
| 242 | assert!(Self::PAGE_SIZE % DFU::ERASE_SIZE as u32 == 0); | 242 | core::assert!(Self::PAGE_SIZE % DFU::ERASE_SIZE as u32 == 0); |
| 243 | } | 243 | } |
| 244 | 244 | ||
| 245 | // Ensure we have enough progress pages to store copy progress | 245 | // Ensure we have enough progress pages to store copy progress |
