mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-29 03:36:07 +08:00
generate uorb topic helper ignore _padding properly
This commit is contained in:
@@ -185,7 +185,7 @@ def print_field(field):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
# skip padding
|
# skip padding
|
||||||
if ("_padding" in field.name):
|
if field.name.startswith('_padding'):
|
||||||
return
|
return
|
||||||
|
|
||||||
bare_type = field.type
|
bare_type = field.type
|
||||||
|
|||||||
Reference in New Issue
Block a user