Skip to content

Commit

Permalink
core: fix param get regression (#2481)
Browse files Browse the repository at this point in the history
It turns out single params are sent with index -1, so caught by the test
for the _HASH_CHECK param.
  • Loading branch information
julianoes authored Dec 20, 2024
1 parent a964028 commit 2b98c53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mavsdk/core/mavlink_parameter_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<uint16_t>::max()) {
if (param_value.param_index == std::numeric_limits<uint16_t>::max() &&
safe_param_id == "_HASH_CHECK") {
// Ignore PX4's _HASH_CHECK param.
return;
}
Expand Down

0 comments on commit 2b98c53

Please sign in to comment.