diff options
author | 2017-12-09 13:38:41 +0100 | |
---|---|---|
committer | 2017-12-09 17:15:15 +0100 | |
commit | 219e17268018f397ff3c8a41519c8345aeab7f2f (patch) | |
tree | 5022a7640b4eae2174fe37f8f9943335f2fb7a0a /examples/one-task.rs | |
parent | 0f5784c2401d4b12004f34345e721598fa21219a (diff) | |
download | rtic-219e17268018f397ff3c8a41519c8345aeab7f2f.tar.gz rtic-219e17268018f397ff3c8a41519c8345aeab7f2f.tar.zst rtic-219e17268018f397ff3c8a41519c8345aeab7f2f.zip |
drop the Static wrapper
Diffstat (limited to 'examples/one-task.rs')
-rw-r--r-- | examples/one-task.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/one-task.rs b/examples/one-task.rs index 2e776768..90eb459a 100644 --- a/examples/one-task.rs +++ b/examples/one-task.rs @@ -79,9 +79,9 @@ fn idle() -> ! { #[allow(unsafe_code)] fn sys_tick(_t: &mut Threshold, r: SYS_TICK::Resources) { // toggle state - **r.ON = !**r.ON; + *r.ON = !*r.ON; - if **r.ON { + if *r.ON { // set the pin PC13 high // NOTE(unsafe) atomic write to a stateless register unsafe { |