diff options
author | 2017-12-09 14:43:29 +0100 | |
---|---|---|
committer | 2017-12-09 17:17:56 +0100 | |
commit | a6dd004113fcbc03ffacacc519d742ee84886c1d (patch) | |
tree | 66b70421a0ab00ab8a2be2fb990c15223e495535 /examples/one-task.rs | |
parent | 219e17268018f397ff3c8a41519c8345aeab7f2f (diff) | |
download | rtic-a6dd004113fcbc03ffacacc519d742ee84886c1d.tar.gz rtic-a6dd004113fcbc03ffacacc519d742ee84886c1d.tar.zst rtic-a6dd004113fcbc03ffacacc519d742ee84886c1d.zip |
implement the Resource trait for owned resources
this unbreaks the "generics" example
Diffstat (limited to 'examples/one-task.rs')
-rw-r--r-- | examples/one-task.rs | 2 |
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; |