mirror of
https://github.com/opentx/opentx.git
synced 2025-07-24 00:35:18 +03:00
Cosmetics
This commit is contained in:
parent
2a94add499
commit
5ba6aae83a
2 changed files with 4 additions and 4 deletions
|
@ -175,7 +175,7 @@ const char * eeRestoreModel(uint8_t i_fileDst, char *model_name);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// For conversions
|
// For conversions
|
||||||
void loadRadioSettingsSettings();
|
void loadRadioSettings();
|
||||||
void loadModel(int index, bool alarms=true);
|
void loadModel(int index, bool alarms=true);
|
||||||
|
|
||||||
bool eepromOpen();
|
bool eepromOpen();
|
||||||
|
|
|
@ -149,11 +149,11 @@ const char * loadModel(const char * filename, bool alarms)
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char * loadRadioSettingsSettings()
|
const char * loadRadioSettings()
|
||||||
{
|
{
|
||||||
const char * error = loadFile(RADIO_SETTINGS_PATH, (uint8_t *)&g_eeGeneral, sizeof(g_eeGeneral));
|
const char * error = loadFile(RADIO_SETTINGS_PATH, (uint8_t *)&g_eeGeneral, sizeof(g_eeGeneral));
|
||||||
if (error) {
|
if (error) {
|
||||||
TRACE("loadRadioSettingsSettings error=%s", error);
|
TRACE("loadRadioSettings error=%s", error);
|
||||||
}
|
}
|
||||||
|
|
||||||
return error;
|
return error;
|
||||||
|
@ -189,7 +189,7 @@ void storageReadAll()
|
||||||
{
|
{
|
||||||
TRACE("storageReadAll");
|
TRACE("storageReadAll");
|
||||||
|
|
||||||
if (loadRadioSettingsSettings() != nullptr) {
|
if (loadRadioSettings() != nullptr) {
|
||||||
storageEraseAll(true);
|
storageEraseAll(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue