1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-26 01:35:21 +03:00

[Horus] A few SD card / Models storage fixes

This commit is contained in:
Bertrand Songis 2015-11-27 21:33:02 +01:00
parent 787d2ffa92
commit bca9866675
5 changed files with 54 additions and 36 deletions

View file

@ -109,20 +109,3 @@ void postModelLoad(bool newModel)
PLAY_MODEL_NAME();
}
void storageEraseAll(bool warn)
{
TRACE("storageEraseAll()");
generalDefault();
modelDefault(0);
if (warn) {
ALERT(STR_STORAGE_WARNING, STR_BAD_RADIO_DATA, AU_BAD_RADIODATA);
}
MESSAGE(STR_STORAGE_WARNING, STR_STORAGE_FORMAT, NULL, AU_STORAGE_FORMAT);
storageFormat();
storageDirty(EE_GENERAL|EE_MODEL);
storageCheck(true);
}