committed by
Peter Feerick
parent
733e272601
commit
9afae09f31
@@ -1778,8 +1778,14 @@ void opentxInit()
|
|||||||
menuHandlers[1] = menuModelSelect;
|
menuHandlers[1] = menuModelSelect;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(EEPROM)
|
#if defined(STARTUP_ANIMATION)
|
||||||
|
lcdRefreshWait();
|
||||||
|
lcdClear();
|
||||||
|
lcdRefresh();
|
||||||
|
lcdRefreshWait();
|
||||||
|
|
||||||
bool radioSettingsValid = storageReadRadioSettings(false);
|
bool radioSettingsValid = storageReadRadioSettings(false);
|
||||||
|
(void)radioSettingsValid;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
BACKLIGHT_ENABLE(); // we start the backlight during the startup animation
|
BACKLIGHT_ENABLE(); // we start the backlight during the startup animation
|
||||||
|
|||||||
@@ -76,6 +76,8 @@ uint8_t findEmptyModel(uint8_t id, bool down);
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
bool storageReadRadioSettings(bool checks);
|
||||||
|
|
||||||
const char * loadRadioSettings();
|
const char * loadRadioSettings();
|
||||||
const char * writeGeneralSettings();
|
const char * writeGeneralSettings();
|
||||||
|
|
||||||
|
|||||||
@@ -475,3 +475,9 @@ const char * restoreModel(uint8_t idx, char *model_name)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
bool storageReadRadioSettings(bool checks)
|
||||||
|
{
|
||||||
|
if (!sdMounted()) sdInit();
|
||||||
|
return loadRadioSettingsYaml() == nullptr;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user