mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 07:03:33 +08:00
uORB generation use constexpr (#7348)
This commit is contained in:
@@ -129,7 +129,7 @@ for constant in spec.constants:
|
||||
else:
|
||||
raise Exception("Type {0} not supported, add to to template file!".format(type_name))
|
||||
|
||||
print('\tstatic const %s %s = %s;'%(type_px4, constant.name, int(constant.val)))
|
||||
print('\tstatic constexpr %s %s = %s;'%(type_px4, constant.name, int(constant.val)))
|
||||
}
|
||||
#endif
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user