Skip to content

Commit 9d8bff8

Browse files
committed
struct Peripherals should include derived peripherals
the last minute fix from #123 removed them from this struct
1 parent 5c8de09 commit 9d8bff8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ pub fn device(
138138
.as_ref()
139139
.map(|v| &v[..])
140140
.unwrap_or(&[])
141-
.is_empty()
141+
.is_empty() && p.derived_from.is_none()
142142
{
143143
// No register block will be generated so don't put this peripheral
144144
// in the `Peripherals` struct

0 commit comments

Comments
 (0)