aboutsummaryrefslogtreecommitdiff
path: root/examples/boot/bootloader/rp/src/main.rs
diff options
context:
space:
mode:
authorkalkyl <[email protected]>2023-01-03 23:34:50 +0100
committerkalkyl <[email protected]>2023-01-03 23:34:50 +0100
commit413f33948927b4b82a7a9cdd835d226a69fdcefc (patch)
tree299eeb3483cf6ecce67e651a66d8bf13378de8e2 /examples/boot/bootloader/rp/src/main.rs
parent9428c40c8de1285271a5e6ba9ad2a7fed8a9475e (diff)
Cleanup
Diffstat (limited to 'examples/boot/bootloader/rp/src/main.rs')
-rw-r--r--examples/boot/bootloader/rp/src/main.rs2
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);