mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-13 20:28:37 -04:00
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;
|
static const uint16_t k_EEPROM_revision = 2;
|
||||||
|
|
||||||
struct Var_header {
|
struct Var_header {
|
||||||
uint8_t size:6;
|
uint8_t size : 6;
|
||||||
uint8_t spare:2;
|
uint8_t spare : 2;
|
||||||
uint8_t key;
|
uint8_t key;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -63,7 +63,7 @@ main(int argc, char *argv[])
|
|||||||
printf("Header OK\n");
|
printf("Header OK\n");
|
||||||
|
|
||||||
index = sizeof(*header);
|
index = sizeof(*header);
|
||||||
for (;;) {
|
for (;; ) {
|
||||||
var = (struct Var_header *)&eeprom[index];
|
var = (struct Var_header *)&eeprom[index];
|
||||||
if (var->key == k_key_sentinel) {
|
if (var->key == k_key_sentinel) {
|
||||||
printf("end sentinel at %u\n", index);
|
printf("end sentinel at %u\n", index);
|
||||||
|
Loading…
Reference in New Issue
Block a user