aboutsummaryrefslogtreecommitdiff
path: root/examples/async-task-multiple-prios.rs
diff options
context:
space:
mode:
authorGravatar Emil Fresk <emil.fresk@gmail.com> 2023-01-08 19:40:31 +0100
committerGravatar Henrik Tjäder <henrik@tjaders.com> 2023-03-01 00:33:28 +0100
commitceaf3613d3256f60b139a4f93220e3c298603b83 (patch)
tree02ee64f2ac4bebea1abe85f85ca761e44ea8beb9 /examples/async-task-multiple-prios.rs
parent9a67f00a30f14df3b9635913f728afd0b40c138d (diff)
downloadrtic-ceaf3613d3256f60b139a4f93220e3c298603b83.tar.gz
rtic-ceaf3613d3256f60b139a4f93220e3c298603b83.tar.zst
rtic-ceaf3613d3256f60b139a4f93220e3c298603b83.zip
Update semihosting
Diffstat (limited to 'examples/async-task-multiple-prios.rs')
-rw-r--r--examples/async-task-multiple-prios.rs16
1 files changed, 6 insertions, 10 deletions
diff --git a/examples/async-task-multiple-prios.rs b/examples/async-task-multiple-prios.rs
index 2f3a0f7b..f614820c 100644
--- a/examples/async-task-multiple-prios.rs
+++ b/examples/async-task-multiple-prios.rs
@@ -24,8 +24,8 @@ mod app {
struct Local {}
#[init]
- fn init(cx: init::Context) -> (Shared, Local) {
- hprintln!("init").unwrap();
+ fn init(_: init::Context) -> (Shared, Local) {
+ hprintln!("init");
async_task1::spawn().ok();
async_task2::spawn().ok();
@@ -51,8 +51,7 @@ mod app {
*a += 1;
*a
})
- )
- .ok();
+ );
}
#[task(priority = 1, shared = [a, b])]
@@ -63,8 +62,7 @@ mod app {
*a += 1;
*a
})
- )
- .ok();
+ );
}
#[task(priority = 2, shared = [a, b])]
@@ -75,8 +73,7 @@ mod app {
*a += 1;
*a
})
- )
- .ok();
+ );
}
#[task(priority = 2, shared = [a, b])]
@@ -87,7 +84,6 @@ mod app {
*a += 1;
*a
})
- )
- .ok();
+ );
}
}