Skip to content

Commit

Permalink
AP_DDS: move closing #endif for status publisher
Browse files Browse the repository at this point in the history
- Must be before the status_ok check.

Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
  • Loading branch information
srmainwaring authored and peterbarker committed Nov 12, 2024
1 parent d1674b0 commit e140458
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libraries/AP_DDS/AP_DDS_Client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e140458

Please sign in to comment.