mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-12-24 19:09:33 +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();
|
||||
basepri::write(logical2hw(ceiling, nvic_prio_bits));
|
||||
let r = f(&mut *ptr);
|
||||
basepri::write(logical2hw(current, nvic_prio_bits));
|
||||
basepri::write(current);
|
||||
r
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue