From 4a043a80f188ed0afd5df25d4c726c49ff459554 Mon Sep 17 00:00:00 2001 From: Eric Katzfey Date: Tue, 27 Feb 2024 20:12:59 -0800 Subject: [PATCH] Fixed error in macro definition --- platforms/common/uORB/uORB.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platforms/common/uORB/uORB.h b/platforms/common/uORB/uORB.h index 1630054149..90c401337d 100644 --- a/platforms/common/uORB/uORB.h +++ b/platforms/common/uORB/uORB.h @@ -109,17 +109,17 @@ typedef const struct orb_metadata *orb_id_t; * @param _queue_size Queue size for remote topics in communicator interface */ #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 = { \ #_name, \ sizeof(_struct), \ _size_no_padding, \ - _fields, \ + _message_hash, \ _orb_id_enum, \ _queue_size \ }; struct hack #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 = { \ #_name, \ sizeof(_struct), \