From 5606ba3cf38c80be5d3e9c88ad4da9982b114851 Mon Sep 17 00:00:00 2001 From: Emil Fresk Date: Sat, 7 Jan 2023 14:38:04 +0100 Subject: [PATCH] Fix locks, basepri writeback error --- src/export.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/export.rs b/src/export.rs index d6b2fc0406..bfd0f6dda1 100644 --- a/src/export.rs +++ b/src/export.rs @@ -237,7 +237,7 @@ pub unsafe fn lock( 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 } }