mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-27 14:04:56 +01:00
critical sections: each task gets its own context
Fixing what was probably a copy-paste error; different tasks each have different types for their context argument.
This commit is contained in:
parent
38306389ea
commit
bbd47e20ee
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ const APP: () = {
|
|||
}
|
||||
|
||||
#[interrupt(binds = UART1, priority = 2, resources = [x])]
|
||||
fn bar(c: foo::Context) {
|
||||
fn bar(c: bar::Context) {
|
||||
let mut x: &mut u64 = c.resources.x;
|
||||
|
||||
*x += 1;
|
||||
|
|
Loading…
Reference in a new issue