We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 023910b commit f03d968Copy full SHA for f03d968
1 file changed
__main__.py
@@ -74,6 +74,8 @@ def main(pack_path: str, xml_path: str):
74
print('-> Found {} devices'.format(len(cmsis_pack.devices)))
75
76
vendor_name = cmsis_pack.devices[0].vendor
77
+ dev_familys = cmsis_pack.devices[0].families
78
+
79
xml_dom = ElementTree.parse(
80
xml_path, parser=ElementTree.XMLParser(target=CommentedTreeBuilder()))
81
xml_dom_db = xml_dom.getroot()
@@ -93,7 +95,7 @@ def main(pack_path: str, xml_path: str):
93
95
# add comment header
94
96
if len(vendor_existed_devs) == 0:
97
xml_dom_db.append(ElementTree.Comment(''))
- xml_dom_db.append(ElementTree.Comment(' ' + vendor_name + ' '))
98
+ xml_dom_db.append(ElementTree.Comment(' {} ({}) '.format(vendor_name, dev_familys[0])))
99
100
101
ign_cnt = 0
0 commit comments