This commit is contained in:
kalkyl 2023-01-03 23:34:50 +01:00
parent 9428c40c8d
commit 413f339489
2 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ impl Default for BootLoader {
}
}
/// A flash implementation that wraps FLASH and will pet a watchdog when touching flash.
/// A flash implementation that will feed a watchdog when touching flash.
pub struct WatchdogFlash<'d, const SIZE: usize> {
flash: Flash<'d, FLASH, SIZE>,
watchdog: Watchdog,

View File

@ -23,7 +23,7 @@ fn main() -> ! {
*/
let mut bl: BootLoader = BootLoader::default();
let flash: WatchdogFlash<'_, FLASH_SIZE> = WatchdogFlash::start(p.FLASH, p.WATCHDOG, Duration::from_secs(8));
let flash = WatchdogFlash::<FLASH_SIZE>::start(p.FLASH, p.WATCHDOG, Duration::from_secs(8));
let mut flash = BootFlash::<_, ERASE_SIZE>::new(flash);
let start = bl.prepare(&mut SingleFlashConfig::new(&mut flash));
core::mem::drop(flash);