aboutsummaryrefslogtreecommitdiff
path: root/src/export.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/export.rs')
-rw-r--r--src/export.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/export.rs b/src/export.rs
index d6b2fc04..bfd0f6dd 100644
--- a/src/export.rs
+++ b/src/export.rs
@@ -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
}
}