aboutsummaryrefslogtreecommitdiff
path: root/examples/boot/application/rp/src/bin/a.rs
diff options
context:
space:
mode:
authorAdam Greig <[email protected]>2023-10-15 00:57:25 +0100
committerAdam Greig <[email protected]>2023-10-15 01:30:12 +0100
commit0621e957a0ddc7010d46b3ea3ddc8b9852bc8333 (patch)
treef6caefe939109e55a73e9141c736d2f6c20f51e8 /examples/boot/application/rp/src/bin/a.rs
parent7559f9e5834799b041d899767ef4305dcfdf0181 (diff)
time: Update examples, tests, and other code to use new Timer::after_x convenience methods
Diffstat (limited to 'examples/boot/application/rp/src/bin/a.rs')
-rw-r--r--examples/boot/application/rp/src/bin/a.rs4
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();