forked from Archive/PX4-Autopilot
param: Fix another off by 1 error and a formatting issue.
This commit is contained in:
parent
bf57e86dc2
commit
92b2395ff6
|
@ -283,7 +283,7 @@ param_find_internal(const char *name, bool notification)
|
|||
break;
|
||||
|
||||
} else if (ret < 0) {
|
||||
last = middle - 1;
|
||||
last = middle;
|
||||
|
||||
} else {
|
||||
front = middle;
|
||||
|
|
|
@ -351,7 +351,7 @@ do_find(const char *name)
|
|||
return 1;
|
||||
}
|
||||
|
||||
printf("Found param %s at index %d\n", name, ret);
|
||||
printf("Found param %s at index %lu\n", name, ret);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue