forked from Archive/PX4-Autopilot
Fixed error in macro definition
This commit is contained in:
parent
bb617a1a56
commit
4a043a80f1
|
@ -109,17 +109,17 @@ typedef const struct orb_metadata *orb_id_t;
|
||||||
* @param _queue_size Queue size for remote topics in communicator interface
|
* @param _queue_size Queue size for remote topics in communicator interface
|
||||||
*/
|
*/
|
||||||
#ifdef CONFIG_ORB_COMMUNICATOR
|
#ifdef CONFIG_ORB_COMMUNICATOR
|
||||||
#define ORB_DEFINE(_name, _struct, _size_no_padding, _fields, _orb_id_enum, _queue_size) \
|
#define ORB_DEFINE(_name, _struct, _size_no_padding, _message_hash, _orb_id_enum, _queue_size) \
|
||||||
const struct orb_metadata __orb_##_name = { \
|
const struct orb_metadata __orb_##_name = { \
|
||||||
#_name, \
|
#_name, \
|
||||||
sizeof(_struct), \
|
sizeof(_struct), \
|
||||||
_size_no_padding, \
|
_size_no_padding, \
|
||||||
_fields, \
|
_message_hash, \
|
||||||
_orb_id_enum, \
|
_orb_id_enum, \
|
||||||
_queue_size \
|
_queue_size \
|
||||||
}; struct hack
|
}; struct hack
|
||||||
#else
|
#else
|
||||||
#define ORB_DEFINE(_name, _struct, _size_no_padding, _fields, _orb_id_enum, _queue_size) \
|
#define ORB_DEFINE(_name, _struct, _size_no_padding, _message_hash, _orb_id_enum, _queue_size) \
|
||||||
const struct orb_metadata __orb_##_name = { \
|
const struct orb_metadata __orb_##_name = { \
|
||||||
#_name, \
|
#_name, \
|
||||||
sizeof(_struct), \
|
sizeof(_struct), \
|
||||||
|
|
Loading…
Reference in New Issue