mavlink app: Robustify param handling

This commit is contained in:
Lorenz Meier 2015-04-27 09:03:49 +02:00
parent ed12d9c733
commit 965e7cce03
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}