diff --git a/radio/src/datastructs.h b/radio/src/datastructs.h index 48b62c405..6215d367e 100644 --- a/radio/src/datastructs.h +++ b/radio/src/datastructs.h @@ -72,11 +72,11 @@ static inline void check_struct() CHKSIZE(LimitData, 13); CHKSIZE(TimerData, 17); CHKSIZE(ModelHeader, 131); - CHKSIZE(CustomScreenData, 852); + CHKSIZE(CustomScreenData, 1452); #if defined(PCBNV14) - CHKTYPE(TopBarPersistentData, 300); + CHKTYPE(TopBarPersistentData, 540); #else - CHKTYPE(TopBarPersistentData, 444); + CHKTYPE(TopBarPersistentData, 804); #endif #else #error CHKSIZE not set up @@ -103,13 +103,13 @@ static inline void check_struct() #elif defined(PCBX7) || defined(PCBXLITE) || defined(PCBX9LITE) CHKSIZE(ModelData, 6329); #elif defined(PCBNV14) - CHKSIZE(ModelData, 15659); + CHKSIZE(ModelData, 21899); #elif defined(PCBPL18) - CHKSIZE(ModelData, 15841); + CHKSIZE(ModelData, 22201); #elif defined(RADIO_T15) - CHKSIZE(ModelData, 15830); + CHKSIZE(ModelData, 22190); #elif defined(PCBHORUS) - CHKSIZE(ModelData, 15805); + CHKSIZE(ModelData, 22165); #else #error CHKSIZE not set up #endif diff --git a/radio/src/gui/colorlcd/mainview/widgets_container.h b/radio/src/gui/colorlcd/mainview/widgets_container.h index 80bc6ae38..26745b4f4 100644 --- a/radio/src/gui/colorlcd/mainview/widgets_container.h +++ b/radio/src/gui/colorlcd/mainview/widgets_container.h @@ -25,7 +25,7 @@ #include "zone.h" #define WIDGET_NAME_LEN 12 -#define MAX_WIDGET_OPTIONS 5 // Name? +#define MAX_WIDGET_OPTIONS 10 static LAYOUT_VAL(MAX_TOPBAR_ZONES, 6, 4) diff --git a/radio/src/storage/yaml/yaml_datastructs_nv14.cpp b/radio/src/storage/yaml/yaml_datastructs_nv14.cpp index 24d2f7fbb..e8a98b6f0 100644 --- a/radio/src/storage/yaml/yaml_datastructs_nv14.cpp +++ b/radio/src/storage/yaml/yaml_datastructs_nv14.cpp @@ -776,28 +776,28 @@ static const struct YamlNode struct_ZoneOptionValueTyped[] = { YAML_END }; static const struct YamlNode struct_WidgetPersistentData[] = { - YAML_ARRAY("options", 96, 5, struct_ZoneOptionValueTyped, NULL), + YAML_ARRAY("options", 96, 10, struct_ZoneOptionValueTyped, NULL), YAML_END }; static const struct YamlNode struct_ZonePersistentData[] = { YAML_IDX, YAML_STRING("widgetName", 12), - YAML_STRUCT("widgetData", 480, struct_WidgetPersistentData, NULL), + YAML_STRUCT("widgetData", 960, struct_WidgetPersistentData, NULL), YAML_END }; static const struct YamlNode struct_LayoutPersistentData[] = { - YAML_ARRAY("zones", 576, 10, struct_ZonePersistentData, NULL), + YAML_ARRAY("zones", 1056, 10, struct_ZonePersistentData, NULL), YAML_ARRAY("options", 96, 10, struct_ZoneOptionValueTyped, NULL), YAML_END }; static const struct YamlNode struct_CustomScreenData[] = { YAML_IDX, YAML_STRING("LayoutId", 12), - YAML_STRUCT("layoutData", 6720, struct_LayoutPersistentData, NULL), + YAML_STRUCT("layoutData", 11520, struct_LayoutPersistentData, NULL), YAML_END }; static const struct YamlNode struct_TopBarPersistentData[] = { - YAML_ARRAY("zones", 576, 4, struct_ZonePersistentData, NULL), + YAML_ARRAY("zones", 1056, 4, struct_ZonePersistentData, NULL), YAML_ARRAY("options", 96, 1, struct_ZoneOptionValueTyped, NULL), YAML_END }; @@ -863,8 +863,8 @@ static const struct YamlNode struct_ModelData[] = { YAML_UNSIGNED( "potsWarnEnabled", 16 ), YAML_ARRAY("potsWarnPosition", 8, 16, struct_signed_8, NULL), YAML_ARRAY("telemetrySensors", 112, 60, struct_TelemetrySensor, NULL), - YAML_ARRAY("screenData", 6816, 10, struct_CustomScreenData, NULL), - YAML_STRUCT("topbarData", 2400, struct_TopBarPersistentData, NULL), + YAML_ARRAY("screenData", 11616, 10, struct_CustomScreenData, NULL), + YAML_STRUCT("topbarData", 4320, struct_TopBarPersistentData, NULL), YAML_ARRAY("topbarWidgetWidth", 8, 4, struct_unsigned_8, NULL), YAML_UNSIGNED( "view", 8 ), YAML_STRING("modelRegistrationID", 8), diff --git a/radio/src/storage/yaml/yaml_datastructs_pl18.cpp b/radio/src/storage/yaml/yaml_datastructs_pl18.cpp index 6254af2ba..90508b4ea 100644 --- a/radio/src/storage/yaml/yaml_datastructs_pl18.cpp +++ b/radio/src/storage/yaml/yaml_datastructs_pl18.cpp @@ -776,28 +776,28 @@ static const struct YamlNode struct_ZoneOptionValueTyped[] = { YAML_END }; static const struct YamlNode struct_WidgetPersistentData[] = { - YAML_ARRAY("options", 96, 5, struct_ZoneOptionValueTyped, NULL), + YAML_ARRAY("options", 96, 10, struct_ZoneOptionValueTyped, NULL), YAML_END }; static const struct YamlNode struct_ZonePersistentData[] = { YAML_IDX, YAML_STRING("widgetName", 12), - YAML_STRUCT("widgetData", 480, struct_WidgetPersistentData, NULL), + YAML_STRUCT("widgetData", 960, struct_WidgetPersistentData, NULL), YAML_END }; static const struct YamlNode struct_LayoutPersistentData[] = { - YAML_ARRAY("zones", 576, 10, struct_ZonePersistentData, NULL), + YAML_ARRAY("zones", 1056, 10, struct_ZonePersistentData, NULL), YAML_ARRAY("options", 96, 10, struct_ZoneOptionValueTyped, NULL), YAML_END }; static const struct YamlNode struct_CustomScreenData[] = { YAML_IDX, YAML_STRING("LayoutId", 12), - YAML_STRUCT("layoutData", 6720, struct_LayoutPersistentData, NULL), + YAML_STRUCT("layoutData", 11520, struct_LayoutPersistentData, NULL), YAML_END }; static const struct YamlNode struct_TopBarPersistentData[] = { - YAML_ARRAY("zones", 576, 6, struct_ZonePersistentData, NULL), + YAML_ARRAY("zones", 1056, 6, struct_ZonePersistentData, NULL), YAML_ARRAY("options", 96, 1, struct_ZoneOptionValueTyped, NULL), YAML_END }; @@ -863,8 +863,8 @@ static const struct YamlNode struct_ModelData[] = { YAML_UNSIGNED( "potsWarnEnabled", 16 ), YAML_ARRAY("potsWarnPosition", 8, 16, struct_signed_8, NULL), YAML_ARRAY("telemetrySensors", 112, 60, struct_TelemetrySensor, NULL), - YAML_ARRAY("screenData", 6816, 10, struct_CustomScreenData, NULL), - YAML_STRUCT("topbarData", 3552, struct_TopBarPersistentData, NULL), + YAML_ARRAY("screenData", 11616, 10, struct_CustomScreenData, NULL), + YAML_STRUCT("topbarData", 6432, struct_TopBarPersistentData, NULL), YAML_ARRAY("topbarWidgetWidth", 8, 6, struct_unsigned_8, NULL), YAML_UNSIGNED( "view", 8 ), YAML_STRING("modelRegistrationID", 8), diff --git a/radio/src/storage/yaml/yaml_datastructs_t15.cpp b/radio/src/storage/yaml/yaml_datastructs_t15.cpp index c55657130..01f6d577a 100644 --- a/radio/src/storage/yaml/yaml_datastructs_t15.cpp +++ b/radio/src/storage/yaml/yaml_datastructs_t15.cpp @@ -778,28 +778,28 @@ static const struct YamlNode struct_ZoneOptionValueTyped[] = { YAML_END }; static const struct YamlNode struct_WidgetPersistentData[] = { - YAML_ARRAY("options", 96, 5, struct_ZoneOptionValueTyped, NULL), + YAML_ARRAY("options", 96, 10, struct_ZoneOptionValueTyped, NULL), YAML_END }; static const struct YamlNode struct_ZonePersistentData[] = { YAML_IDX, YAML_STRING("widgetName", 12), - YAML_STRUCT("widgetData", 480, struct_WidgetPersistentData, NULL), + YAML_STRUCT("widgetData", 960, struct_WidgetPersistentData, NULL), YAML_END }; static const struct YamlNode struct_LayoutPersistentData[] = { - YAML_ARRAY("zones", 576, 10, struct_ZonePersistentData, NULL), + YAML_ARRAY("zones", 1056, 10, struct_ZonePersistentData, NULL), YAML_ARRAY("options", 96, 10, struct_ZoneOptionValueTyped, NULL), YAML_END }; static const struct YamlNode struct_CustomScreenData[] = { YAML_IDX, YAML_STRING("LayoutId", 12), - YAML_STRUCT("layoutData", 6720, struct_LayoutPersistentData, NULL), + YAML_STRUCT("layoutData", 11520, struct_LayoutPersistentData, NULL), YAML_END }; static const struct YamlNode struct_TopBarPersistentData[] = { - YAML_ARRAY("zones", 576, 6, struct_ZonePersistentData, NULL), + YAML_ARRAY("zones", 1056, 6, struct_ZonePersistentData, NULL), YAML_ARRAY("options", 96, 1, struct_ZoneOptionValueTyped, NULL), YAML_END }; @@ -869,8 +869,8 @@ static const struct YamlNode struct_ModelData[] = { YAML_UNSIGNED( "potsWarnEnabled", 16 ), YAML_ARRAY("potsWarnPosition", 8, 16, struct_signed_8, NULL), YAML_ARRAY("telemetrySensors", 112, 60, struct_TelemetrySensor, NULL), - YAML_ARRAY("screenData", 6816, 10, struct_CustomScreenData, NULL), - YAML_STRUCT("topbarData", 3552, struct_TopBarPersistentData, NULL), + YAML_ARRAY("screenData", 11616, 10, struct_CustomScreenData, NULL), + YAML_STRUCT("topbarData", 6432, struct_TopBarPersistentData, NULL), YAML_ARRAY("topbarWidgetWidth", 8, 6, struct_unsigned_8, NULL), YAML_UNSIGNED( "view", 8 ), YAML_STRING("modelRegistrationID", 8), diff --git a/radio/src/storage/yaml/yaml_datastructs_x10.cpp b/radio/src/storage/yaml/yaml_datastructs_x10.cpp index 29942bf93..78b36eed5 100644 --- a/radio/src/storage/yaml/yaml_datastructs_x10.cpp +++ b/radio/src/storage/yaml/yaml_datastructs_x10.cpp @@ -778,28 +778,28 @@ static const struct YamlNode struct_ZoneOptionValueTyped[] = { YAML_END }; static const struct YamlNode struct_WidgetPersistentData[] = { - YAML_ARRAY("options", 96, 5, struct_ZoneOptionValueTyped, NULL), + YAML_ARRAY("options", 96, 10, struct_ZoneOptionValueTyped, NULL), YAML_END }; static const struct YamlNode struct_ZonePersistentData[] = { YAML_IDX, YAML_STRING("widgetName", 12), - YAML_STRUCT("widgetData", 480, struct_WidgetPersistentData, NULL), + YAML_STRUCT("widgetData", 960, struct_WidgetPersistentData, NULL), YAML_END }; static const struct YamlNode struct_LayoutPersistentData[] = { - YAML_ARRAY("zones", 576, 10, struct_ZonePersistentData, NULL), + YAML_ARRAY("zones", 1056, 10, struct_ZonePersistentData, NULL), YAML_ARRAY("options", 96, 10, struct_ZoneOptionValueTyped, NULL), YAML_END }; static const struct YamlNode struct_CustomScreenData[] = { YAML_IDX, YAML_STRING("LayoutId", 12), - YAML_STRUCT("layoutData", 6720, struct_LayoutPersistentData, NULL), + YAML_STRUCT("layoutData", 11520, struct_LayoutPersistentData, NULL), YAML_END }; static const struct YamlNode struct_TopBarPersistentData[] = { - YAML_ARRAY("zones", 576, 6, struct_ZonePersistentData, NULL), + YAML_ARRAY("zones", 1056, 6, struct_ZonePersistentData, NULL), YAML_ARRAY("options", 96, 1, struct_ZoneOptionValueTyped, NULL), YAML_END }; @@ -864,8 +864,8 @@ static const struct YamlNode struct_ModelData[] = { YAML_UNSIGNED( "potsWarnEnabled", 16 ), YAML_ARRAY("potsWarnPosition", 8, 16, struct_signed_8, NULL), YAML_ARRAY("telemetrySensors", 112, 60, struct_TelemetrySensor, NULL), - YAML_ARRAY("screenData", 6816, 10, struct_CustomScreenData, NULL), - YAML_STRUCT("topbarData", 3552, struct_TopBarPersistentData, NULL), + YAML_ARRAY("screenData", 11616, 10, struct_CustomScreenData, NULL), + YAML_STRUCT("topbarData", 6432, struct_TopBarPersistentData, NULL), YAML_ARRAY("topbarWidgetWidth", 8, 6, struct_unsigned_8, NULL), YAML_UNSIGNED( "view", 8 ), YAML_STRING("modelRegistrationID", 8), diff --git a/radio/src/storage/yaml/yaml_datastructs_x12s.cpp b/radio/src/storage/yaml/yaml_datastructs_x12s.cpp index 29942bf93..78b36eed5 100644 --- a/radio/src/storage/yaml/yaml_datastructs_x12s.cpp +++ b/radio/src/storage/yaml/yaml_datastructs_x12s.cpp @@ -778,28 +778,28 @@ static const struct YamlNode struct_ZoneOptionValueTyped[] = { YAML_END }; static const struct YamlNode struct_WidgetPersistentData[] = { - YAML_ARRAY("options", 96, 5, struct_ZoneOptionValueTyped, NULL), + YAML_ARRAY("options", 96, 10, struct_ZoneOptionValueTyped, NULL), YAML_END }; static const struct YamlNode struct_ZonePersistentData[] = { YAML_IDX, YAML_STRING("widgetName", 12), - YAML_STRUCT("widgetData", 480, struct_WidgetPersistentData, NULL), + YAML_STRUCT("widgetData", 960, struct_WidgetPersistentData, NULL), YAML_END }; static const struct YamlNode struct_LayoutPersistentData[] = { - YAML_ARRAY("zones", 576, 10, struct_ZonePersistentData, NULL), + YAML_ARRAY("zones", 1056, 10, struct_ZonePersistentData, NULL), YAML_ARRAY("options", 96, 10, struct_ZoneOptionValueTyped, NULL), YAML_END }; static const struct YamlNode struct_CustomScreenData[] = { YAML_IDX, YAML_STRING("LayoutId", 12), - YAML_STRUCT("layoutData", 6720, struct_LayoutPersistentData, NULL), + YAML_STRUCT("layoutData", 11520, struct_LayoutPersistentData, NULL), YAML_END }; static const struct YamlNode struct_TopBarPersistentData[] = { - YAML_ARRAY("zones", 576, 6, struct_ZonePersistentData, NULL), + YAML_ARRAY("zones", 1056, 6, struct_ZonePersistentData, NULL), YAML_ARRAY("options", 96, 1, struct_ZoneOptionValueTyped, NULL), YAML_END }; @@ -864,8 +864,8 @@ static const struct YamlNode struct_ModelData[] = { YAML_UNSIGNED( "potsWarnEnabled", 16 ), YAML_ARRAY("potsWarnPosition", 8, 16, struct_signed_8, NULL), YAML_ARRAY("telemetrySensors", 112, 60, struct_TelemetrySensor, NULL), - YAML_ARRAY("screenData", 6816, 10, struct_CustomScreenData, NULL), - YAML_STRUCT("topbarData", 3552, struct_TopBarPersistentData, NULL), + YAML_ARRAY("screenData", 11616, 10, struct_CustomScreenData, NULL), + YAML_STRUCT("topbarData", 6432, struct_TopBarPersistentData, NULL), YAML_ARRAY("topbarWidgetWidth", 8, 6, struct_unsigned_8, NULL), YAML_UNSIGNED( "view", 8 ), YAML_STRING("modelRegistrationID", 8),