microcdr and IDL: remove field ordering, causing improper serialization/deserialization

This commit is contained in:
TSC21
2019-05-16 12:02:24 +02:00
committed by Beat Küng
parent bff93685a5
commit 3ab75b83ce
2 changed files with 3 additions and 10 deletions
+1 -4
View File
@@ -78,10 +78,7 @@ def add_msg_field(field):
def add_msg_fields():
# sort fields (using a stable sort) as in the declaration of the type
sorted_fields = sorted(spec.parsed_fields(),
key=sizeof_field_type, reverse=True)
for field in sorted_fields:
for field in spec.parsed_fields():
add_msg_field(field)