We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa365d8 commit 8b3b278Copy full SHA for 8b3b278
src/generate.rs
@@ -243,9 +243,8 @@ pub fn interrupt(
243
match *target {
244
Target::CortexM => {
245
let is_armv6 = match device.cpu {
246
- Some(ref cpu) if cpu.name.starts_with("CM0") => true,
247
- Some(_) => false,
248
- _ => true, // default to armv6 when the <cpu> section is missing
+ Some(ref cpu) => cpu.name.starts_with("CM0"),
+ None => true, // default to armv6 when the <cpu> section is missing
249
};
250
251
if is_armv6 {
0 commit comments