diff options
author | 2020-10-23 20:52:58 +0000 | |
---|---|---|
committer | 2020-10-23 20:52:58 +0000 | |
commit | bbcae14e37c5f4ab5701b2a688bee52bfa7aaa1b (patch) | |
tree | c70a80e9bcacb54838f09141bd1d2b27e844760f /examples/destructure.rs | |
parent | b3aa9e99a975eca637582f31de20fe11ae8f7d64 (diff) | |
parent | e8eca4be37a2fe1af25b203ace5e99b31fcc3972 (diff) | |
download | rtic-bbcae14e37c5f4ab5701b2a688bee52bfa7aaa1b.tar.gz rtic-bbcae14e37c5f4ab5701b2a688bee52bfa7aaa1b.tar.zst rtic-bbcae14e37c5f4ab5701b2a688bee52bfa7aaa1b.zip |
Merge #399
399: Now all locks are symmetric r=AfoHT a=korken89
Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
Diffstat (limited to 'examples/destructure.rs')
-rw-r--r-- | examples/destructure.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/destructure.rs b/examples/destructure.rs index 3c5eabf7..d843978b 100644 --- a/examples/destructure.rs +++ b/examples/destructure.rs @@ -32,7 +32,7 @@ mod app { } // Direct destructure - #[task(binds = UART0, resources = [a, b, c])] + #[task(binds = UART0, resources = [&a, &b, &c])] fn uart0(cx: uart0::Context) { let a = cx.resources.a; let b = cx.resources.b; @@ -42,7 +42,7 @@ mod app { } // De-structure-ing syntax - #[task(binds = UART1, resources = [a, b, c])] + #[task(binds = UART1, resources = [&a, &b, &c])] fn uart1(cx: uart1::Context) { let uart1::Resources { a, b, c } = cx.resources; |