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