Skip to content

Commit e55aa96

Browse files
bors[bot]MabezDev
andauthored
Merge #104
104: Fix encoding of addressUnitBits r=therealprof a=MabezDev Encoding addressUnitBits now properly encodes, instead of duplication the description field Co-authored-by: Scott Mabin <scott@mabez.dev>
2 parents 36f45ca + 730e393 commit e55aa96

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)