mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-25 21:19:35 +01:00
fix warning on ARMv6-M
This commit is contained in:
parent
dd539d114f
commit
5e83dc295e
1 changed files with 2 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue