From 57f565b352f80e37ab8a27934fe5e2972bf3902d Mon Sep 17 00:00:00 2001 From: gsequeira Date: Fri, 23 Dec 2022 10:47:40 -0500 Subject: [PATCH 1/2] Fix header location for zephyr 3.2 for udp. --- .../microros_transports/udp/microros_transports.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/libmicroros/microros_transports/udp/microros_transports.h b/modules/libmicroros/microros_transports/udp/microros_transports.h index 760a905..ffeeb8f 100644 --- a/modules/libmicroros/microros_transports/udp/microros_transports.h +++ b/modules/libmicroros/microros_transports/udp/microros_transports.h @@ -18,8 +18,13 @@ #include #include +#if ZEPHYR_VERSION_CODE >= ZEPHYR_VERSION(3,2,0) +#include +#include +#else #include #include +#endif #ifdef __cplusplus extern "C" From 35f94ca3cbd13a3c868e309949b11ef4691da5e8 Mon Sep 17 00:00:00 2001 From: gsequeira Date: Tue, 27 Dec 2022 14:42:09 +0000 Subject: [PATCH 2/2] Fix example warning, replace zephyr.h with kernel.h for v3.2 and up. --- src/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.c b/src/main.c index a1d876c..0a8c0a8 100644 --- a/src/main.c +++ b/src/main.c @@ -1,7 +1,11 @@ #include #if ZEPHYR_VERSION_CODE >= ZEPHYR_VERSION(3,1,0) +#if ZEPHYR_VERSION_CODE >= ZEPHYR_VERSION(3,2,0) +#include +#else #include +#endif #include #include #include