layoutName is now layoutId
This commit is contained in:
@@ -323,7 +323,7 @@ void convertModelData_218_to_219(ModelData &model)
|
||||
|
||||
for (int screen=0; screen<MAX_CUSTOM_SCREENS; screen++) {
|
||||
CustomScreenData& screenData = g_model.screenData[screen];
|
||||
if (screenData.layoutName[0] == '\0')
|
||||
if (screenData.LayoutId[0] == '\0')
|
||||
continue;
|
||||
for (int zone=0; zone<MAX_LAYOUT_ZONES; zone++) {
|
||||
Layout::ZonePersistentData * zoneData = &screenData.layoutData.zones[zone];
|
||||
|
||||
@@ -397,7 +397,7 @@ PACK(struct TelemetrySensor_218 {
|
||||
|
||||
#if defined(PCBHORUS)
|
||||
PACK(struct CustomScreenData_v218 {
|
||||
char layoutName[10];
|
||||
char LayoutId[10];
|
||||
Layout::PersistentData layoutData;
|
||||
});
|
||||
#define VIEW_DATA \
|
||||
|
||||
@@ -697,7 +697,7 @@ static const struct YamlNode struct_Layout__PersistentData[] = {
|
||||
};
|
||||
static const struct YamlNode struct_CustomScreenData[] = {
|
||||
YAML_IDX,
|
||||
YAML_STRING("layoutName", 10),
|
||||
YAML_STRING("LayoutId", 10),
|
||||
YAML_STRUCT("layoutData", 6720, struct_Layout__PersistentData, NULL),
|
||||
YAML_END
|
||||
};
|
||||
|
||||
@@ -698,7 +698,7 @@ static const struct YamlNode struct_Layout__PersistentData[] = {
|
||||
};
|
||||
static const struct YamlNode struct_CustomScreenData[] = {
|
||||
YAML_IDX,
|
||||
YAML_STRING("layoutName", 10),
|
||||
YAML_STRING("LayoutId", 10),
|
||||
YAML_STRUCT("layoutData", 6720, struct_Layout__PersistentData, NULL),
|
||||
YAML_END
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user