mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-24 04:32:52 +01:00
Fix locks, basepri writeback error
This commit is contained in:
parent
8c90b3f40e
commit
81874adf4e
1 changed files with 1 additions and 1 deletions
|
@ -237,7 +237,7 @@ pub unsafe fn lock<T, R, const M: usize>(
|
||||||
let current = basepri::read();
|
let current = basepri::read();
|
||||||
basepri::write(logical2hw(ceiling, nvic_prio_bits));
|
basepri::write(logical2hw(ceiling, nvic_prio_bits));
|
||||||
let r = f(&mut *ptr);
|
let r = f(&mut *ptr);
|
||||||
basepri::write(logical2hw(current, nvic_prio_bits));
|
basepri::write(current);
|
||||||
r
|
r
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue