mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 17:58:52 +08:00
param: Fix another off by 1 error and a formatting issue.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user