We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ef3eb9 commit ccdc7ccCopy full SHA for ccdc7cc
src/peripheral/scb.rs
@@ -301,7 +301,7 @@ impl VectActive {
301
12 => VectActive::Exception(Exception::DebugMonitor),
302
14 => VectActive::Exception(Exception::PendSV),
303
15 => VectActive::Exception(Exception::SysTick),
304
- irqn if irqn >= 16 && irqn < 512 => VectActive::Interrupt { irqn: irqn - 16 },
+ irqn if (16..512).contains(&irqn) => VectActive::Interrupt { irqn: irqn - 16 },
305
_ => return None,
306
})
307
}
0 commit comments