mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-18 18:29:06 +08:00
Make parameter generation also depend on the scripts that run. Address some review comments.
This commit is contained in:
parent
92b2395ff6
commit
67a484ac34
@ -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;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user