Skip to content

Commit 7d839cf

Browse files
salkiniumrleh
authored andcommitted
[tools] Fix duplicate section names in size tool
1 parent 26490e1 commit 7d839cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/modm_tools/size.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def is_in_memory(name):
116116
sections["static"].append(s["name"])
117117

118118
# create lists of the used sections for Flash and RAM
119-
sections["rom"] = sorted(sections["rom"])
119+
sections["rom"] = sorted(list(set(sections["rom"])))
120120
sections["ram"] = sorted(list(set(sections["static"] + sections["stack"])))
121121
sections["heap"] = sorted(sections["heap"])
122122

0 commit comments

Comments
 (0)