mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-27 14:04:56 +01:00
Fix locks, basepri writeback error
This commit is contained in:
parent
569a761122
commit
5606ba3cf3
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