Skip to content

Commit

Permalink
Fix name to support multiple array per struct
Browse files Browse the repository at this point in the history
  • Loading branch information
SMorettini committed Feb 5, 2024
1 parent ed3c37e commit 19bb865
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/fprime_gds/common/loaders/xml_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,11 @@ def get_serializable_type(self, type_name, xml_obj):
type_obj = self.parse_type(memb_type_name, memb, xml_obj)
# memb_size is not None for member array
if(memb_size is not None):
type_obj = ArrayType.construct_type("Array_"+type_name, type_obj, int(memb_size), fmt_str)
type_obj = ArrayType.construct_type(
f"Array_{type_obj.__name__}_{memb_size}",
type_obj,
int(memb_size),
fmt_str)

members.append((name, type_obj, fmt_str, desc))

Expand Down

0 comments on commit 19bb865

Please sign in to comment.