forked from Archive/PX4-Autopilot
mavlink app: Robustify param handling
This commit is contained in:
parent
ed12d9c733
commit
965e7cce03
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue