Bsongis/boot issue invalid eeprom (#6684)

Boot issue on invalid eeprom
This commit is contained in:
Bertrand Songis
2019-08-30 13:23:49 +02:00
committed by GitHub
parent ae4a80f4be
commit ff2cde85be
7 changed files with 29 additions and 32 deletions
+3 -3
View File
@@ -1817,8 +1817,7 @@ void opentxInit()
#endif
#if defined(EEPROM)
storageClearRadioSetting();
storageReadRadioSettings(false);
bool radioSettingsValid = storageReadRadioSettings(false);
#endif
BACKLIGHT_ENABLE(); // we start the backlight during the startup animation
@@ -1877,7 +1876,8 @@ void opentxInit()
#endif
#if defined(EEPROM)
storageReadRadioSettings(true);
if (!radioSettingsValid)
storageReadRadioSettings();
storageReadCurrentModel();
#endif