mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-05 01:21:35 +08:00
param lib: Fix use of array size
This commit is contained in:
@@ -298,7 +298,7 @@ param_for_used_index(unsigned index)
|
|||||||
/* walk all params and count */
|
/* walk all params and count */
|
||||||
int count = 0;
|
int count = 0;
|
||||||
|
|
||||||
for (unsigned i = 0; i < (unsigned)param_info_count + 1; i++) {
|
for (unsigned i = 0; i < (unsigned)size_param_changed_storage_bytes; i++) {
|
||||||
for (unsigned j = 0; j < 8; j++) {
|
for (unsigned j = 0; j < 8; j++) {
|
||||||
if (param_changed_storage[i] & (1 << j)) {
|
if (param_changed_storage[i] & (1 << j)) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user