From e14045898d9f7876cef8f6d7371a4e243fa8a546 Mon Sep 17 00:00:00 2001 From: Rhys Mainwaring Date: Tue, 12 Nov 2024 13:31:58 +0000 Subject: [PATCH] AP_DDS: move closing #endif for status publisher - Must be before the status_ok check. Signed-off-by: Rhys Mainwaring --- libraries/AP_DDS/AP_DDS_Client.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/AP_DDS/AP_DDS_Client.cpp b/libraries/AP_DDS/AP_DDS_Client.cpp index ef4e14a35132f..b70c026b6a9d4 100644 --- a/libraries/AP_DDS/AP_DDS_Client.cpp +++ b/libraries/AP_DDS/AP_DDS_Client.cpp @@ -1615,10 +1615,11 @@ void AP_DDS_Client::update() } last_status_check_time_ms = cur_time_ms; } +#endif // AP_DDS_STATUS_PUB_ENABLED status_ok = uxr_run_session_time(&session, 1); } -#endif // AP_DDS_STATUS_PUB_ENABLED + #if CONFIG_HAL_BOARD != HAL_BOARD_SITL extern "C" { int clock_gettime(clockid_t clockid, struct timespec *ts);