mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-21 23:20:35 +08:00
UAVCAN_PACK_STRUCTS is always defined
This commit is contained in:
@@ -31,6 +31,10 @@ ${line}
|
||||
% endfor
|
||||
******************************************************************************/
|
||||
|
||||
#ifndef UAVCAN_PACK_STRUCTS
|
||||
# error UAVCAN_PACK_STRUCTS
|
||||
#endif
|
||||
|
||||
% for nsc in t.cpp_namespace_components:
|
||||
namespace ${nsc}
|
||||
{
|
||||
|
||||
@@ -44,6 +44,9 @@
|
||||
* Struct layout control.
|
||||
* Define UAVCAN_PACK_STRUCTS = 1 to reduce memory usage.
|
||||
*/
|
||||
#ifndef UAVCAN_PACK_STRUCTS
|
||||
# define UAVCAN_PACK_STRUCTS 0
|
||||
#endif
|
||||
#ifndef UAVCAN_PACKED_BEGIN
|
||||
# define UAVCAN_PACKED_BEGIN _Pragma("pack(push, 1)")
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user