uORB generation use constexpr (#7348)

This commit is contained in:
Daniel Agar
2017-06-03 18:02:42 -04:00
committed by GitHub
parent 96cffd4077
commit b4e2360070
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
};