diff options
Diffstat (limited to 'examples')
| -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); |
