mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 06:23:34 +08:00
microcdr and IDL: remove field ordering, causing improper serialization/deserialization
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user