mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-19 05:09:07 +08:00
Merge pull request #3230 from thiemar/uavcan_param_count_fix
Fix off-by-one error in parameter count [resolves PX4/Firmware#3162]
This commit is contained in:
commit
aad434831e
@ -575,7 +575,8 @@ void UavcanServers::cb_getset(const uavcan::ServiceCallResult<uavcan::protocol::
|
||||
if (result.isSuccessful()) {
|
||||
uavcan::protocol::param::GetSet::Response resp = result.getResponse();
|
||||
if (resp.name.size()) {
|
||||
_param_counts[node_id] = _count_index++;
|
||||
_count_index++;
|
||||
_param_counts[node_id] = _count_index;
|
||||
|
||||
uavcan::protocol::param::GetSet::Request req;
|
||||
req.index = _count_index;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user