Skip to content

Commit

Permalink
Add missing DeriveFrom entry for address_block
Browse files Browse the repository at this point in the history
Fixes #288
  • Loading branch information
emesare committed Feb 15, 2025
1 parent 3019dbc commit e0631d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions svd-rs/src/derive_from.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ impl DeriveFrom for PeripheralInfo {
.default_register_properties
.derive_from(&other.default_register_properties);
derived.registers = derived.registers.or_else(|| other.registers.clone());
derived.address_block = derived
.address_block
.or_else(|| other.address_block.clone());
if derived.interrupt.is_empty() {
derived.interrupt = other.interrupt.clone();
}
Expand Down

0 comments on commit e0631d7

Please sign in to comment.