aboutsummaryrefslogtreecommitdiff
path: root/examples/one-task.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--examples/one-task.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/one-task.rs b/examples/one-task.rs
index 90eb459a..07def59b 100644
--- a/examples/one-task.rs
+++ b/examples/one-task.rs
@@ -77,7 +77,7 @@ fn idle() -> ! {
// `r` is the set of resources this task has access to. `SYS_TICK::Resources`
// has one field per resource declared in `app!`.
#[allow(unsafe_code)]
-fn sys_tick(_t: &mut Threshold, r: SYS_TICK::Resources) {
+fn sys_tick(_t: &mut Threshold, mut r: SYS_TICK::Resources) {
// toggle state
*r.ON = !*r.ON;