diff options
| author | kalkyl <[email protected]> | 2023-01-03 23:34:50 +0100 |
|---|---|---|
| committer | kalkyl <[email protected]> | 2023-01-03 23:34:50 +0100 |
| commit | 413f33948927b4b82a7a9cdd835d226a69fdcefc (patch) | |
| tree | 299eeb3483cf6ecce67e651a66d8bf13378de8e2 /examples/boot/bootloader/rp/src/main.rs | |
| parent | 9428c40c8de1285271a5e6ba9ad2a7fed8a9475e (diff) | |
Cleanup
Diffstat (limited to 'examples/boot/bootloader/rp/src/main.rs')
| -rw-r--r-- | examples/boot/bootloader/rp/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/boot/bootloader/rp/src/main.rs b/examples/boot/bootloader/rp/src/main.rs index 4defa01fd..fb7f0522b 100644 --- a/examples/boot/bootloader/rp/src/main.rs +++ b/examples/boot/bootloader/rp/src/main.rs | |||
| @@ -23,7 +23,7 @@ fn main() -> ! { | |||
| 23 | */ | 23 | */ |
| 24 | 24 | ||
| 25 | let mut bl: BootLoader = BootLoader::default(); | 25 | let mut bl: BootLoader = BootLoader::default(); |
| 26 | let flash: WatchdogFlash<'_, FLASH_SIZE> = WatchdogFlash::start(p.FLASH, p.WATCHDOG, Duration::from_secs(8)); | 26 | let flash = WatchdogFlash::<FLASH_SIZE>::start(p.FLASH, p.WATCHDOG, Duration::from_secs(8)); |
| 27 | let mut flash = BootFlash::<_, ERASE_SIZE>::new(flash); | 27 | let mut flash = BootFlash::<_, ERASE_SIZE>::new(flash); |
| 28 | let start = bl.prepare(&mut SingleFlashConfig::new(&mut flash)); | 28 | let start = bl.prepare(&mut SingleFlashConfig::new(&mut flash)); |
| 29 | core::mem::drop(flash); | 29 | core::mem::drop(flash); |
