mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-05 21:52:10 +01:00
Small mod to flash saving.
This commit is contained in:
parent
563b454693
commit
31069d8858
@ -95,7 +95,6 @@ void PIOS_Board_Init(void) {
|
|||||||
|
|
||||||
PipXSettingsData pipxSettings;
|
PipXSettingsData pipxSettings;
|
||||||
#if defined(PIOS_INCLUDE_FLASH_EEPROM)
|
#if defined(PIOS_INCLUDE_FLASH_EEPROM)
|
||||||
#ifdef NEVER
|
|
||||||
PIOS_EEPROM_Init(&pios_eeprom_cfg);
|
PIOS_EEPROM_Init(&pios_eeprom_cfg);
|
||||||
|
|
||||||
/* Read the settings from flash. */
|
/* Read the settings from flash. */
|
||||||
@ -103,8 +102,9 @@ void PIOS_Board_Init(void) {
|
|||||||
if (PIOS_EEPROM_Load((uint8_t*)&pipxSettings, sizeof(PipXSettingsData)) == 0)
|
if (PIOS_EEPROM_Load((uint8_t*)&pipxSettings, sizeof(PipXSettingsData)) == 0)
|
||||||
PipXSettingsSet(&pipxSettings);
|
PipXSettingsSet(&pipxSettings);
|
||||||
else
|
else
|
||||||
#endif
|
|
||||||
PipXSettingsGet(&pipxSettings);
|
PipXSettingsGet(&pipxSettings);
|
||||||
|
#else
|
||||||
|
PipXSettingsGet(&pipxSettings);
|
||||||
#endif /* PIOS_INCLUDE_FLASH_EEPROM */
|
#endif /* PIOS_INCLUDE_FLASH_EEPROM */
|
||||||
|
|
||||||
/* Initialize the task monitor library */
|
/* Initialize the task monitor library */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user