mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 01:35:41 +03:00
Renamed EEPROM config version field. (#2495)
This commit is contained in:
parent
c1a02c714b
commit
f984838d27
1 changed files with 3 additions and 3 deletions
|
@ -61,7 +61,7 @@ typedef enum {
|
||||||
|
|
||||||
// Header for the saved copy.
|
// Header for the saved copy.
|
||||||
typedef struct {
|
typedef struct {
|
||||||
uint8_t format;
|
uint8_t eepromConfigVersion;
|
||||||
char boardIdentifier[sizeof(TARGET_BOARD_IDENTIFIER)];
|
char boardIdentifier[sizeof(TARGET_BOARD_IDENTIFIER)];
|
||||||
} PG_PACKED configHeader_t;
|
} PG_PACKED configHeader_t;
|
||||||
|
|
||||||
|
@ -120,7 +120,7 @@ bool isEEPROMContentValid(void)
|
||||||
const uint8_t *p = &__config_start;
|
const uint8_t *p = &__config_start;
|
||||||
const configHeader_t *header = (const configHeader_t *)p;
|
const configHeader_t *header = (const configHeader_t *)p;
|
||||||
|
|
||||||
if (header->format != EEPROM_CONF_VERSION) {
|
if (header->eepromConfigVersion != EEPROM_CONF_VERSION) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -232,7 +232,7 @@ static bool writeSettingsToEEPROM(void)
|
||||||
uint8_t chk = 0;
|
uint8_t chk = 0;
|
||||||
|
|
||||||
configHeader_t header = {
|
configHeader_t header = {
|
||||||
.format = EEPROM_CONF_VERSION,
|
.eepromConfigVersion = EEPROM_CONF_VERSION,
|
||||||
.boardIdentifier = TARGET_BOARD_IDENTIFIER,
|
.boardIdentifier = TARGET_BOARD_IDENTIFIER,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue