Skip to content

Commit d11ccc2

Browse files
committed
svd-encoder: fix device node 'headerDefinitionsPrefix'
This fixes a typo when encoding the `headerDefinitionsPrefix` node in a device, which otherwise results in an invalid XML generated by `svdtools patch`: ``` $ xmllint --schema svd/cmsis-svd.xsd --noout svd/lpc1342.svd.patched svd/lpc1342.svd.patched:15: element header_definitions_prefix: Schemas validity error : Element 'header_definitions_prefix': This element is not expected. Expected is one of ( headerSystemFilename, headerDefinitionsPrefix, addressUnitBits ) ```
1 parent 1345326 commit d11ccc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

svd-encoder/src/device.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ impl Encode for Device {
4141

4242
if let Some(v) = &self.header_definitions_prefix {
4343
elem.children
44-
.push(new_node("header_definitions_prefix", v.clone()));
44+
.push(new_node("headerDefinitionsPrefix", v.clone()));
4545
}
4646

4747
elem.children.push(new_node(

0 commit comments

Comments
 (0)