@@ -75,7 +75,10 @@ void convertRadioData(int version)
|
||||
#if defined(SIMU)
|
||||
RTOS_WAIT_MS(200);
|
||||
#endif
|
||||
|
||||
|
||||
// Load models list before converting
|
||||
modelslist.load();
|
||||
|
||||
const char* error = nullptr;
|
||||
for (auto category_ptr : modelslist.getCategories()) {
|
||||
for (auto model_ptr : *category_ptr) {
|
||||
|
||||
@@ -149,9 +149,6 @@ void storageReadAll()
|
||||
// it's being reloaded after USB connection
|
||||
modelslist.clear();
|
||||
|
||||
// and reload the list
|
||||
modelslist.load();
|
||||
|
||||
if (loadRadioSettings() != nullptr) {
|
||||
storageEraseAll(true);
|
||||
}
|
||||
@@ -163,6 +160,9 @@ void storageReadAll()
|
||||
}
|
||||
}
|
||||
|
||||
// and reload the list
|
||||
modelslist.load();
|
||||
|
||||
// Current model filename is empty...
|
||||
// Let's fix it!
|
||||
if (strlen(g_eeGeneral.currModelFilename) == 0) {
|
||||
|
||||
Reference in New Issue
Block a user