mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 02:53:33 +08:00
Make parameter generation also depend on the scripts that run. Address some review comments.
This commit is contained in:
@@ -263,7 +263,7 @@ param_find_internal(const char *name, bool notification)
|
||||
{
|
||||
param_t middle;
|
||||
param_t front = 0;
|
||||
param_t last = get_param_info_count() - 1;
|
||||
param_t last = get_param_info_count();
|
||||
|
||||
/* perform a binary search of the known parameters */
|
||||
|
||||
@@ -278,7 +278,7 @@ param_find_internal(const char *name, bool notification)
|
||||
|
||||
return middle;
|
||||
|
||||
} else if (middle == front || middle == last) {
|
||||
} else if (middle == front) {
|
||||
/* An end point has been hit, but there has been no match */
|
||||
break;
|
||||
|
||||
|
||||
@@ -351,7 +351,7 @@ do_find(const char *name)
|
||||
return 1;
|
||||
}
|
||||
|
||||
printf("Found param %s at index %lu\n", name, ret);
|
||||
printf("Found param %s at index %"PRIxPTR"\n", name, ret);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user