From 4ecbcc2d27ed28e677b789a42157c96226aefa9f Mon Sep 17 00:00:00 2001 From: Ryan Pavlik <ryan.pavlik@collabora.com> Date: Fri, 18 Feb 2022 16:41:31 -0600 Subject: [PATCH] d/wmr: Fix doxygen warning --- src/xrt/drivers/wmr/wmr_controller_protocol.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/xrt/drivers/wmr/wmr_controller_protocol.h b/src/xrt/drivers/wmr/wmr_controller_protocol.h index 9edd58780..77b26e2bc 100644 --- a/src/xrt/drivers/wmr/wmr_controller_protocol.h +++ b/src/xrt/drivers/wmr/wmr_controller_protocol.h @@ -19,6 +19,11 @@ extern "C" { #endif +#ifdef XRT_DOXYGEN +#define WMR_PACKED +#else +#define WMR_PACKED __attribute__((packed)) +#endif /*! * WMR Motion Controller protocol constant and structures @@ -79,7 +84,7 @@ struct wmr_controller_fw_cmd uint8_t block_id; __le32 addr; - } __attribute__((packed)) cmd; + } WMR_PACKED cmd; uint8_t buf[64]; }; }; @@ -103,7 +108,7 @@ struct wmr_controller_fw_cmd_response uint8_t len; /* Bytes in this response data */ uint8_t data[68]; - } __attribute__((packed)) response; + } WMR_PACKED response; uint8_t buf[78]; }; }; @@ -112,6 +117,7 @@ struct wmr_controller_fw_cmd_response * @} */ +#undef WMR_PACKED /*! * WMR Motion Controller protocol helpers