aboutsummaryrefslogtreecommitdiff
path: root/examples/lock2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/lock2.rs')
-rw-r--r--examples/lock2.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/lock2.rs b/examples/lock2.rs
index 809d4dcc..b505bf3b 100644
--- a/examples/lock2.rs
+++ b/examples/lock2.rs
@@ -25,7 +25,7 @@ const APP: () = {
// when omitted priority is assumed to be `1`
#[task(binds = GPIOA, resources = [shared, shared2])]
- fn gpioa(mut c: gpioa::Context) {
+ fn gpioa(c: gpioa::Context) {
c.resources.shared.lock(|shared| {
*shared += 1;
rtic::pend(Interrupt::GPIOB);