diff options
| author | Rasmus Melchior Jacobsen <[email protected]> | 2023-04-04 12:36:50 +0200 |
|---|---|---|
| committer | Rasmus Melchior Jacobsen <[email protected]> | 2023-04-04 12:36:50 +0200 |
| commit | 5e19fb6fb976db869696eaa5e8a2cdba751055b1 (patch) | |
| tree | 596dad74ec65e07313ba4e70e6201c1d2ff1421e /embassy-boot | |
| parent | c38eb9660bc697bab40dd9aad97048db97618cf0 (diff) | |
Fix compile error when verification is enabled
Diffstat (limited to 'embassy-boot')
| -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 cb12f9dc7..d53c613a3 100644 --- a/embassy-boot/boot/src/lib.rs +++ b/embassy-boot/boot/src/lib.rs | |||
| @@ -286,13 +286,13 @@ mod tests { | |||
| 286 | 286 | ||
| 287 | const STATE: Partition = Partition::new(0, 4096); | 287 | const STATE: Partition = Partition::new(0, 4096); |
| 288 | const DFU: Partition = Partition::new(4096, 8192); | 288 | const DFU: Partition = Partition::new(4096, 8192); |
| 289 | let mut flash = MemFlash::<8192, 4096, 4>([0xff; 8192]); | 289 | let mut flash = MemFlash::<8192, 4096, 4>::default(); |
| 290 | 290 | ||
| 291 | let firmware_len = firmware.len(); | 291 | let firmware_len = firmware.len(); |
| 292 | 292 | ||
| 293 | let mut write_buf = [0; 4096]; | 293 | let mut write_buf = [0; 4096]; |
| 294 | write_buf[0..firmware_len].copy_from_slice(firmware); | 294 | write_buf[0..firmware_len].copy_from_slice(firmware); |
| 295 | NorFlash::write(&mut flash, DFU.from as u32, &write_buf).unwrap(); | 295 | DFU.write_blocking(&mut flash, 0, &write_buf).unwrap(); |
| 296 | 296 | ||
| 297 | // On with the test | 297 | // On with the test |
| 298 | 298 | ||
