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:
parent
787d2ffa92
commit
bca9866675
5 changed files with 54 additions and 36 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue