mirror of https://github.com/ArduPilot/ardupilot
fixed dump size
This commit is contained in:
parent
d2cc6740f0
commit
7d21692301
|
@ -123,7 +123,7 @@ main(int argc, char *argv[])
|
||||||
printf("%04x: type %u (%s) key %u group_element %u size %d\n ",
|
printf("%04x: type %u (%s) key %u group_element %u size %d\n ",
|
||||||
index, var->type, type_names[var->type], var->key, var->group_element, size);
|
index, var->type, type_names[var->type], var->key, var->group_element, size);
|
||||||
index += sizeof(*var);
|
index += sizeof(*var);
|
||||||
for (i = 0; i <= size; i++) {
|
for (i = 0; i < size; i++) {
|
||||||
printf(" %02x", eeprom[index + i]);
|
printf(" %02x", eeprom[index + i]);
|
||||||
}
|
}
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
|
Loading…
Reference in New Issue