mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
mavlink app: Robustify param handling
This commit is contained in:
@@ -201,7 +201,7 @@ MavlinkParametersManager::send(const hrt_abstime t)
|
|||||||
send_param(p);
|
send_param(p);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_send_all_index >= (int) param_count()) {
|
if ((p == PARAM_INVALID) || (_send_all_index >= (int) param_count())) {
|
||||||
_send_all_index = -1;
|
_send_all_index = -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user