Make parameter generation also depend on the scripts that run. Address some review comments.

This commit is contained in:
Stephan Brown 2017-01-05 12:02:39 -08:00 committed by Beat Küng
parent 92b2395ff6
commit 67a484ac34
4 changed files with 5 additions and 10 deletions

View File

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