mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-27 19:50:34 +08:00
param API: Ensure info count method is called
This commit is contained in:
@@ -300,7 +300,7 @@ param_for_index(unsigned index)
|
||||
param_t
|
||||
param_for_used_index(unsigned index)
|
||||
{
|
||||
if (index < param_info_count) {
|
||||
if (index < get_param_info_count()) {
|
||||
|
||||
/* walk all params and count */
|
||||
int count = 0;
|
||||
|
||||
Reference in New Issue
Block a user