1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-23 16:25:16 +03:00

[Companion] Another simplification

This commit is contained in:
Bertrand Songis 2016-11-24 07:24:49 +01:00
parent d82ec0fe9c
commit 0ca0785912
17 changed files with 126 additions and 124 deletions

View file

@ -136,11 +136,11 @@ const char * loadModel(const char * filename, bool alarms)
return error;
}
const char * loadGeneralSettings()
const char * loadRadioSettingsSettings()
{
const char * error = loadFile(RADIO_SETTINGS_PATH, (uint8_t *)&g_eeGeneral, sizeof(g_eeGeneral));
if (error) {
TRACE("loadGeneralSettings error=%s", error);
TRACE("loadRadioSettingsSettings error=%s", error);
}
// TODO this is temporary, we only have one model for now
return error;
@ -176,7 +176,7 @@ void storageReadAll()
{
TRACE("storageReadAll");
if (loadGeneralSettings() != NULL) {
if (loadRadioSettingsSettings() != NULL) {
storageEraseAll(true);
}