Compilation fixes after rebase

This commit is contained in:
Raphael Coeffic
2021-11-10 11:06:59 +01:00
parent 72859ad6d1
commit ce75a1a48d
3 changed files with 24 additions and 14 deletions
@@ -22,7 +22,7 @@
#include "opentx.h"
#include "conversions.h"
#if defined(COLORLCD)
#if defined(COLORLCD) && !defined(SDCARD_YAML)
#include "storage/modelslist.h"
#include "storage/sdcard_common.h"
@@ -213,7 +213,7 @@ void convertModelData_219_to_220(ModelData &model)
if (defaultLayout) {
strcpy(newModel.screenData[0].LayoutId, defaultLayout->getId());
defaultLayout->initPersistentData(&newModel.screenData[0].layoutData);
defaultLayout->initPersistentData(&newModel.screenData[0].layoutData, true);
}
#endif
free(oldModelAllocated);