Skip to content

Commit

Permalink
device node: include width field
Browse files Browse the repository at this point in the history
  • Loading branch information
projectgus committed Sep 28, 2023
1 parent 66622eb commit aa668c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -347,9 +347,9 @@ fn main() {
.expect("PhysicalSpace element missing");

let mut develem = Element::new("device");
let mut name_e = Element::new("name");
name_e.children.push(XMLNode::Text(name.to_string()));
develem.children.push(XMLNode::Element(name_e));
add_elem_with_text(&mut develem, "name", name);
add_elem_with_text(&mut develem, "width", "32");

let mut periph_out = Element::new("peripherals");

for node in phys.children.iter() {
Expand Down

0 comments on commit aa668c5

Please sign in to comment.