From a14e0af23432732532e703e0b75dd02cc4cf618c Mon Sep 17 00:00:00 2001 From: Rhys Mainwaring <rhys.mainwaring@me.com> Date: Tue, 24 Oct 2023 14:00:57 +0100 Subject: [PATCH] AP_DDS: add local variables to clarify arguments to uxr_ping_agent_session Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> --- libraries/AP_DDS/AP_DDS_Client.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/AP_DDS/AP_DDS_Client.cpp b/libraries/AP_DDS/AP_DDS_Client.cpp index 1ae30067465be2..58e6779249f44d 100644 --- a/libraries/AP_DDS/AP_DDS_Client.cpp +++ b/libraries/AP_DDS/AP_DDS_Client.cpp @@ -652,7 +652,9 @@ void AP_DDS_Client::main_loop(void) ++num_pings_missed; } - uxr_ping_agent_session(&session, 0, 1); + const int ping_agent_timeout_ms{0}; + const uint8_t ping_agent_attempts{1}; + uxr_ping_agent_session(&session, ping_agent_timeout_ms, ping_agent_attempts); had_ping_reply = false; }