Skip to content

Commit

Permalink
Merge pull request #32 from bugadani/empty
Browse files Browse the repository at this point in the history
Don't fail on missing registers node
  • Loading branch information
Dirbaio authored May 6, 2024
2 parents 1c198ae + 21a2694 commit 305bd6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/svd2ir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub fn convert_peripheral(ir: &mut IR, p: &svd::Peripheral) -> anyhow::Result<()
&mut blocks,
vec![p.name.clone()],
p.description.clone(),
p.registers.as_ref().unwrap(),
p.registers.as_deref().unwrap_or(&[]),
);

let enum_from_name = enum_map(&blocks);
Expand Down

0 comments on commit 305bd6e

Please sign in to comment.