Skip to content
Snippets Groups Projects
Commit 5e83dc29 authored by Jorge Aparicio's avatar Jorge Aparicio
Browse files

fix warning on ARMv6-M

parent dd539d11
No related branches found
No related tags found
No related merge requests found
......@@ -101,7 +101,6 @@ pub unsafe fn claim<T, R, F>(
where
F: FnOnce(T, &mut Threshold) -> R,
{
let max_priority = 1 << nvic_prio_bits;
if ceiling > t.value() {
match () {
#[cfg(armv6m)]
......@@ -109,6 +108,8 @@ where
#[cfg(not(armv6m))]
() => {
let max_priority = 1 << nvic_prio_bits;
if ceiling == max_priority {
atomic(t, |t| f(data, t))
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment