WiP storage format conversions

This commit is contained in:
Raphael Coeffic
2021-11-10 11:07:01 +01:00
parent 0503e6fb8e
commit 8d04e373b6
12 changed files with 412 additions and 97 deletions
+5 -2
View File
@@ -137,10 +137,13 @@ const char * loadModel(const char * filename, bool alarms)
return error;
}
#if defined(STORAGE_CONVERSIONS)
// Conversions from EEPROM are done in batch when converting the radio file.
// It is not supported on a model by model base when loaded.
#if defined(STORAGE_CONVERSIONS) && !defined(EEPROM_RLC)
if (version < EEPROM_VER) {
convertModelData(version);
convertBinModelData(filename, version);
}
// TODO: reload model afterwards
#endif
postModelLoad(alarms);