aboutsummaryrefslogtreecommitdiff
path: root/embassy-nrf-examples/src/bin/timer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'embassy-nrf-examples/src/bin/timer.rs')
-rw-r--r--embassy-nrf-examples/src/bin/timer.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/embassy-nrf-examples/src/bin/timer.rs b/embassy-nrf-examples/src/bin/timer.rs
index 6116aa60d..a2b717bc1 100644
--- a/embassy-nrf-examples/src/bin/timer.rs
+++ b/embassy-nrf-examples/src/bin/timer.rs
@@ -10,10 +10,10 @@ mod example_common;
10use example_common::*; 10use example_common::*;
11 11
12use defmt::panic; 12use defmt::panic;
13use embassy::executor::{task, Spawner}; 13use embassy::executor::Spawner;
14use embassy::time::{Duration, Timer}; 14use embassy::time::{Duration, Timer};
15 15
16#[task] 16#[embassy::task]
17async fn run1() { 17async fn run1() {
18 loop { 18 loop {
19 info!("BIG INFREQUENT TICK"); 19 info!("BIG INFREQUENT TICK");
@@ -21,7 +21,7 @@ async fn run1() {
21 } 21 }
22} 22}
23 23
24#[task] 24#[embassy::task]
25async fn run2() { 25async fn run2() {
26 loop { 26 loop {
27 info!("tick"); 27 info!("tick");