diff options
Diffstat (limited to 'examples/boot/application/rp/src/bin/a.rs')
| -rw-r--r-- | examples/boot/application/rp/src/bin/a.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/boot/application/rp/src/bin/a.rs b/examples/boot/application/rp/src/bin/a.rs index a4602a7ed..6fd5d7f60 100644 --- a/examples/boot/application/rp/src/bin/a.rs +++ b/examples/boot/application/rp/src/bin/a.rs | |||
| @@ -41,7 +41,7 @@ async fn main(_s: Spawner) { | |||
| 41 | let mut aligned = AlignedBuffer([0; 1]); | 41 | let mut aligned = AlignedBuffer([0; 1]); |
| 42 | let mut updater = BlockingFirmwareUpdater::new(config, &mut aligned.0); | 42 | let mut updater = BlockingFirmwareUpdater::new(config, &mut aligned.0); |
| 43 | 43 | ||
| 44 | Timer::after(Duration::from_secs(5)).await; | 44 | Timer::after_secs(5).await; |
| 45 | watchdog.feed(); | 45 | watchdog.feed(); |
| 46 | led.set_high(); | 46 | led.set_high(); |
| 47 | let mut offset = 0; | 47 | let mut offset = 0; |
| @@ -61,7 +61,7 @@ async fn main(_s: Spawner) { | |||
| 61 | watchdog.feed(); | 61 | watchdog.feed(); |
| 62 | defmt::info!("firmware written, marking update"); | 62 | defmt::info!("firmware written, marking update"); |
| 63 | updater.mark_updated().unwrap(); | 63 | updater.mark_updated().unwrap(); |
| 64 | Timer::after(Duration::from_secs(2)).await; | 64 | Timer::after_secs(2).await; |
| 65 | led.set_low(); | 65 | led.set_low(); |
| 66 | defmt::info!("update marked, resetting"); | 66 | defmt::info!("update marked, resetting"); |
| 67 | cortex_m::peripheral::SCB::sys_reset(); | 67 | cortex_m::peripheral::SCB::sys_reset(); |
