committed by
Andre Bernet
parent
733cfb3218
commit
27b1255584
@@ -2442,7 +2442,7 @@ void opentxInit(OPENTX_INIT_ARGS)
|
||||
#endif
|
||||
|
||||
#if defined(EEPROM)
|
||||
storageReadAll();
|
||||
storageReadRadioSettings();
|
||||
#endif
|
||||
|
||||
// Radios handle UNEXPECTED_SHUTDOWN() differently:
|
||||
@@ -2461,7 +2461,11 @@ void opentxInit(OPENTX_INIT_ARGS)
|
||||
if (!unexpectedShutdown) {
|
||||
sdInit();
|
||||
logsInit();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(EEPROM)
|
||||
storageReadCurrentModel();
|
||||
#endif
|
||||
|
||||
#if defined(PCBHORUS)
|
||||
|
||||
@@ -88,7 +88,7 @@ void eeLoadModelHeaders()
|
||||
}
|
||||
#endif
|
||||
|
||||
void storageReadAll()
|
||||
void storageReadRadioSettings()
|
||||
{
|
||||
if (!eepromOpen() || !eeLoadGeneral()) {
|
||||
storageEraseAll(true);
|
||||
@@ -105,10 +105,19 @@ void storageReadAll()
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void storageReadCurrentModel()
|
||||
{
|
||||
eeLoadModel(g_eeGeneral.currModel);
|
||||
}
|
||||
|
||||
void storageReadAll()
|
||||
{
|
||||
storageReadRadioSettings();
|
||||
storageReadCurrentModel();
|
||||
}
|
||||
|
||||
void storageEraseAll(bool warn)
|
||||
{
|
||||
TRACE("storageEraseAll");
|
||||
|
||||
@@ -37,3 +37,7 @@ void selectModel(uint8_t sub);
|
||||
#else
|
||||
#define eeLoadModelHeaders()
|
||||
#endif
|
||||
|
||||
void storageReadRadioSettings();
|
||||
void storageReadCurrentModel();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user