mirror of https://github.com/ArduPilot/ardupilot
uncrustify libraries/AP_Common/tools/eedump.c
This commit is contained in:
parent
4a50e56a48
commit
3a26b94af2
|
@ -19,8 +19,8 @@ static const uint16_t k_EEPROM_magic = 0x5041;
|
|||
static const uint16_t k_EEPROM_revision = 2;
|
||||
|
||||
struct Var_header {
|
||||
uint8_t size:6;
|
||||
uint8_t spare:2;
|
||||
uint8_t size : 6;
|
||||
uint8_t spare : 2;
|
||||
uint8_t key;
|
||||
};
|
||||
|
||||
|
@ -63,7 +63,7 @@ main(int argc, char *argv[])
|
|||
printf("Header OK\n");
|
||||
|
||||
index = sizeof(*header);
|
||||
for (;;) {
|
||||
for (;; ) {
|
||||
var = (struct Var_header *)&eeprom[index];
|
||||
if (var->key == k_key_sentinel) {
|
||||
printf("end sentinel at %u\n", index);
|
||||
|
|
Loading…
Reference in New Issue