mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-23 14:47:44 +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);
|
||||
}
|
||||
|
||||
if (_send_all_index >= (int) param_count()) {
|
||||
if ((p == PARAM_INVALID) || (_send_all_index >= (int) param_count())) {
|
||||
_send_all_index = -1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user