aboutsummaryrefslogtreecommitdiff
path: root/examples/two-tasks.rs
diff options
context:
space:
mode:
authorGravatar Jorge Aparicio <jorge@japaric.io> 2017-12-09 13:38:41 +0100
committerGravatar Jorge Aparicio <jorge@japaric.io> 2017-12-09 17:15:15 +0100
commit219e17268018f397ff3c8a41519c8345aeab7f2f (patch)
tree5022a7640b4eae2174fe37f8f9943335f2fb7a0a /examples/two-tasks.rs
parent0f5784c2401d4b12004f34345e721598fa21219a (diff)
downloadrtic-219e17268018f397ff3c8a41519c8345aeab7f2f.tar.gz
rtic-219e17268018f397ff3c8a41519c8345aeab7f2f.tar.zst
rtic-219e17268018f397ff3c8a41519c8345aeab7f2f.zip
drop the Static wrapper
Diffstat (limited to 'examples/two-tasks.rs')
-rw-r--r--examples/two-tasks.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/two-tasks.rs b/examples/two-tasks.rs
index df6e784a..e9d31e78 100644
--- a/examples/two-tasks.rs
+++ b/examples/two-tasks.rs
@@ -45,7 +45,7 @@ fn idle() -> ! {
fn sys_tick(_t: &mut Threshold, r: SYS_TICK::Resources) {
// ..
- **r.COUNTER += 1;
+ *r.COUNTER += 1;
// ..
}
@@ -53,7 +53,7 @@ fn sys_tick(_t: &mut Threshold, r: SYS_TICK::Resources) {
fn tim2(_t: &mut Threshold, r: TIM2::Resources) {
// ..
- **r.COUNTER += 1;
+ *r.COUNTER += 1;
// ..
}