From 1fb754307e5badc412f7b571d63636f4d93f33c4 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Thu, 19 Dec 2024 14:34:03 +1300 Subject: [PATCH] core: fix param get regression It turns out single params are sent with index -1, so caught by the test for the _HASH_CHECK param. --- src/mavsdk/core/mavlink_parameter_client.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mavsdk/core/mavlink_parameter_client.cpp b/src/mavsdk/core/mavlink_parameter_client.cpp index a65f7753f..68eddb4c1 100644 --- a/src/mavsdk/core/mavlink_parameter_client.cpp +++ b/src/mavsdk/core/mavlink_parameter_client.cpp @@ -673,7 +673,8 @@ void MavlinkParameterClient::process_param_value(const mavlink_message_t& messag << ", index: " << param_value.param_index; } - if (param_value.param_index == std::numeric_limits::max()) { + if (param_value.param_index == std::numeric_limits::max() && + safe_param_id == "_HASH_CHECK") { // Ignore PX4's _HASH_CHECK param. return; }