This commit is contained in:
Per Lindgren 2020-06-13 00:19:01 +02:00
parent 3c208003f5
commit c360ffaad8
7 changed files with 270 additions and 41 deletions

View file

@ -124,6 +124,7 @@ pub unsafe fn lock<T, R>(
nvic_prio_bits: u8,
f: impl FnOnce(&mut T) -> R,
) -> R {
let current = priority.get();
if current < ceiling {