Skip to content

Commit 730e393

Browse files
committed
Encoding addressUnitBits now properly encodes, instead of duplication the description field
1 parent 36f45ca commit 730e393

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/svd/device.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ impl Encode for Device {
9797
.push(new_element("description", Some(v.clone())));
9898
}
9999

100-
if let Some(v) = &self.description {
100+
if let Some(v) = &self.address_unit_bits {
101101
elem.children
102102
.push(new_element("addressUnitBits", Some(format!("{}", v))));
103103
}

0 commit comments

Comments
 (0)