forked from Archive/PX4-Autopilot
param style fix
This commit is contained in:
parent
03bdf1e5f2
commit
3dbd48fbad
|
@ -304,6 +304,7 @@ param_count_used(void)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
return count;
|
||||
}
|
||||
|
||||
|
@ -311,9 +312,11 @@ param_t
|
|||
param_for_index(unsigned index)
|
||||
{
|
||||
unsigned count = get_param_info_count();
|
||||
|
||||
if (count && index < count) {
|
||||
return (param_t)index;
|
||||
}
|
||||
|
||||
return PARAM_INVALID;
|
||||
}
|
||||
|
||||
|
@ -321,6 +324,7 @@ param_t
|
|||
param_for_used_index(unsigned index)
|
||||
{
|
||||
int count = get_param_info_count();
|
||||
|
||||
if (count && index < count) {
|
||||
/* walk all params and count */
|
||||
|
||||
|
|
Loading…
Reference in New Issue