feat(color): increase max length for widget name (#6099)
This commit is contained in:
@@ -36,7 +36,7 @@ constexpr int MAX_THEME_OPTIONS {5};
|
|||||||
constexpr int LEN_ZONE_OPTION_STRING {8};
|
constexpr int LEN_ZONE_OPTION_STRING {8};
|
||||||
constexpr int MAX_LAYOUT_ZONES {10};
|
constexpr int MAX_LAYOUT_ZONES {10};
|
||||||
constexpr int MAX_LAYOUT_OPTIONS {10};
|
constexpr int MAX_LAYOUT_OPTIONS {10};
|
||||||
constexpr int WIDGET_NAME_LEN {12};
|
constexpr int WIDGET_NAME_LEN {20};
|
||||||
constexpr int MAX_WIDGET_OPTIONS {5};
|
constexpr int MAX_WIDGET_OPTIONS {5};
|
||||||
constexpr int MAX_TOPBAR_ZONES {6}; // max 4 used for portrait
|
constexpr int MAX_TOPBAR_ZONES {6}; // max 4 used for portrait
|
||||||
constexpr int MAX_TOPBAR_OPTIONS {1};
|
constexpr int MAX_TOPBAR_OPTIONS {1};
|
||||||
|
|||||||
@@ -151,7 +151,7 @@ UserInterfacePanel::UserInterfacePanel(QWidget * parent, ModelData & model, Gene
|
|||||||
ZonePersistentData & zpd = model.topBarData.zones[i];
|
ZonePersistentData & zpd = model.topBarData.zones[i];
|
||||||
QPushButton * btn = new QPushButton(zpd.widgetName, this);
|
QPushButton * btn = new QPushButton(zpd.widgetName, this);
|
||||||
btn->setProperty("index", i);
|
btn->setProperty("index", i);
|
||||||
btn->setFixedSize(QSize(90, 30));
|
btn->setFixedSize(QSize(180, 50));
|
||||||
widgetbtns.append(btn);
|
widgetbtns.append(btn);
|
||||||
|
|
||||||
if (zpd.widgetName[0] != '\0' && SHOW_RAW_INFO) {
|
if (zpd.widgetName[0] != '\0' && SHOW_RAW_INFO) {
|
||||||
@@ -280,7 +280,7 @@ CustomScreenPanel::CustomScreenPanel(QWidget * parent, ModelData & model, int in
|
|||||||
ZonePersistentData & zpd = lpd.zones[i];
|
ZonePersistentData & zpd = lpd.zones[i];
|
||||||
QPushButton * btn = new QPushButton(zpd.widgetName, this);
|
QPushButton * btn = new QPushButton(zpd.widgetName, this);
|
||||||
btn->setProperty("index", i);
|
btn->setProperty("index", i);
|
||||||
btn->setFixedSize(QSize(90, 30));
|
btn->setFixedSize(QSize(180, 50));
|
||||||
widgetbtns.append(btn);
|
widgetbtns.append(btn);
|
||||||
|
|
||||||
if (zpd.widgetName[0] != '\0' && SHOW_RAW_INFO) {
|
if (zpd.widgetName[0] != '\0' && SHOW_RAW_INFO) {
|
||||||
@@ -293,7 +293,7 @@ CustomScreenPanel::CustomScreenPanel(QWidget * parent, ModelData & model, int in
|
|||||||
wgt->setVisible(false);
|
wgt->setVisible(false);
|
||||||
optswidgets.append(wgt);
|
optswidgets.append(wgt);
|
||||||
|
|
||||||
QGridLayout * layout = new QGridLayout(wgt); // must be owned by QWidget so isibility can be set
|
QGridLayout * layout = new QGridLayout(wgt); // must be owned by QWidget so visibility can be set
|
||||||
layout->addLayout(addOptionsLayout<WidgetPersistentData>(zpd.widgetData, MAX_WIDGET_OPTIONS, zpd.widgetName), 0, 0, Qt::AlignTop);
|
layout->addLayout(addOptionsLayout<WidgetPersistentData>(zpd.widgetData, MAX_WIDGET_OPTIONS, zpd.widgetName), 0, 0, Qt::AlignTop);
|
||||||
optsgrids.append(layout);
|
optsgrids.append(layout);
|
||||||
|
|
||||||
|
|||||||
@@ -72,11 +72,11 @@ static inline void check_struct()
|
|||||||
CHKSIZE(LimitData, 13);
|
CHKSIZE(LimitData, 13);
|
||||||
CHKSIZE(TimerData, 17);
|
CHKSIZE(TimerData, 17);
|
||||||
CHKSIZE(ModelHeader, 131);
|
CHKSIZE(ModelHeader, 131);
|
||||||
CHKSIZE(CustomScreenData, 1892);
|
CHKSIZE(CustomScreenData, 1972);
|
||||||
#if defined(PCBNV14) || defined(RADIO_NB4P) || defined(RADIO_NV14_FAMILY)
|
#if defined(PCBNV14) || defined(RADIO_NB4P) || defined(RADIO_NV14_FAMILY)
|
||||||
CHKTYPE(TopBarPersistentData, 704);
|
CHKTYPE(TopBarPersistentData, 736);
|
||||||
#else
|
#else
|
||||||
CHKTYPE(TopBarPersistentData, 1048);
|
CHKTYPE(TopBarPersistentData, 1096);
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
#error CHKSIZE not set up
|
#error CHKSIZE not set up
|
||||||
@@ -106,18 +106,18 @@ static inline void check_struct()
|
|||||||
CHKSIZE(ModelData, 6329);
|
CHKSIZE(ModelData, 6329);
|
||||||
#elif defined(PCBPL18)
|
#elif defined(PCBPL18)
|
||||||
#if defined(RADIO_NB4P) || defined(RADIO_NV14_FAMILY)
|
#if defined(RADIO_NB4P) || defined(RADIO_NV14_FAMILY)
|
||||||
CHKSIZE(ModelData, 26499);
|
CHKSIZE(ModelData, 27331);
|
||||||
#else
|
#else
|
||||||
CHKSIZE(ModelData, 26845);
|
CHKSIZE(ModelData, 27693);
|
||||||
#endif
|
#endif
|
||||||
#elif defined(PCBNV14)
|
#elif defined(PCBNV14)
|
||||||
CHKSIZE(ModelData, 26463);
|
CHKSIZE(ModelData, 27295);
|
||||||
#elif defined(PCBST16)
|
#elif defined(PCBST16)
|
||||||
CHKSIZE(ModelData, 26906);
|
CHKSIZE(ModelData, 27754);
|
||||||
#elif defined(RADIO_T15)
|
#elif defined(RADIO_T15)
|
||||||
CHKSIZE(ModelData, 26834);
|
CHKSIZE(ModelData, 27682);
|
||||||
#elif defined(PCBHORUS)
|
#elif defined(PCBHORUS)
|
||||||
CHKSIZE(ModelData, 26809);
|
CHKSIZE(ModelData, 27657);
|
||||||
#else
|
#else
|
||||||
#error CHKSIZE not set up
|
#error CHKSIZE not set up
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
#include "window.h"
|
#include "window.h"
|
||||||
#include "zone.h"
|
#include "zone.h"
|
||||||
|
|
||||||
#define WIDGET_NAME_LEN 12
|
#define WIDGET_NAME_LEN 20
|
||||||
#define MAX_WIDGET_OPTIONS 10
|
#define MAX_WIDGET_OPTIONS 10
|
||||||
|
|
||||||
static LAYOUT_VAL2(MAX_TOPBAR_ZONES, 6, 4)
|
static LAYOUT_VAL2(MAX_TOPBAR_ZONES, 6, 4)
|
||||||
|
|||||||
@@ -788,23 +788,23 @@ static const struct YamlNode struct_WidgetPersistentData[] = {
|
|||||||
};
|
};
|
||||||
static const struct YamlNode struct_ZonePersistentData[] = {
|
static const struct YamlNode struct_ZonePersistentData[] = {
|
||||||
YAML_IDX,
|
YAML_IDX,
|
||||||
YAML_STRING("widgetName", 12),
|
YAML_STRING("widgetName", 20),
|
||||||
YAML_STRUCT("widgetData", 1280, struct_WidgetPersistentData, NULL),
|
YAML_STRUCT("widgetData", 1280, struct_WidgetPersistentData, NULL),
|
||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
static const struct YamlNode struct_LayoutPersistentData[] = {
|
static const struct YamlNode struct_LayoutPersistentData[] = {
|
||||||
YAML_ARRAY("zones", 1376, 10, struct_ZonePersistentData, NULL),
|
YAML_ARRAY("zones", 1440, 10, struct_ZonePersistentData, NULL),
|
||||||
YAML_ARRAY("options", 128, 10, struct_ZoneOptionValueTyped, NULL),
|
YAML_ARRAY("options", 128, 10, struct_ZoneOptionValueTyped, NULL),
|
||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
static const struct YamlNode struct_CustomScreenData[] = {
|
static const struct YamlNode struct_CustomScreenData[] = {
|
||||||
YAML_IDX,
|
YAML_IDX,
|
||||||
YAML_STRING("LayoutId", 12),
|
YAML_STRING("LayoutId", 12),
|
||||||
YAML_STRUCT("layoutData", 15040, struct_LayoutPersistentData, NULL),
|
YAML_STRUCT("layoutData", 15680, struct_LayoutPersistentData, NULL),
|
||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
static const struct YamlNode struct_TopBarPersistentData[] = {
|
static const struct YamlNode struct_TopBarPersistentData[] = {
|
||||||
YAML_ARRAY("zones", 1376, 6, struct_ZonePersistentData, NULL),
|
YAML_ARRAY("zones", 1440, 6, struct_ZonePersistentData, NULL),
|
||||||
YAML_ARRAY("options", 128, 1, struct_ZoneOptionValueTyped, NULL),
|
YAML_ARRAY("options", 128, 1, struct_ZoneOptionValueTyped, NULL),
|
||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
@@ -869,8 +869,8 @@ static const struct YamlNode struct_ModelData[] = {
|
|||||||
YAML_UNSIGNED( "potsWarnEnabled", 16 ),
|
YAML_UNSIGNED( "potsWarnEnabled", 16 ),
|
||||||
YAML_ARRAY("potsWarnPosition", 8, 16, struct_signed_8, NULL),
|
YAML_ARRAY("potsWarnPosition", 8, 16, struct_signed_8, NULL),
|
||||||
YAML_ARRAY("telemetrySensors", 112, 60, struct_TelemetrySensor, NULL),
|
YAML_ARRAY("telemetrySensors", 112, 60, struct_TelemetrySensor, NULL),
|
||||||
YAML_ARRAY("screenData", 15136, 10, struct_CustomScreenData, NULL),
|
YAML_ARRAY("screenData", 15776, 10, struct_CustomScreenData, NULL),
|
||||||
YAML_STRUCT("topbarData", 8384, struct_TopBarPersistentData, NULL),
|
YAML_STRUCT("topbarData", 8768, struct_TopBarPersistentData, NULL),
|
||||||
YAML_ARRAY("topbarWidgetWidth", 8, 6, struct_unsigned_8, NULL),
|
YAML_ARRAY("topbarWidgetWidth", 8, 6, struct_unsigned_8, NULL),
|
||||||
YAML_UNSIGNED( "view", 8 ),
|
YAML_UNSIGNED( "view", 8 ),
|
||||||
YAML_STRING("modelRegistrationID", 8),
|
YAML_STRING("modelRegistrationID", 8),
|
||||||
|
|||||||
@@ -779,23 +779,23 @@ static const struct YamlNode struct_WidgetPersistentData[] = {
|
|||||||
};
|
};
|
||||||
static const struct YamlNode struct_ZonePersistentData[] = {
|
static const struct YamlNode struct_ZonePersistentData[] = {
|
||||||
YAML_IDX,
|
YAML_IDX,
|
||||||
YAML_STRING("widgetName", 12),
|
YAML_STRING("widgetName", 20),
|
||||||
YAML_STRUCT("widgetData", 1280, struct_WidgetPersistentData, NULL),
|
YAML_STRUCT("widgetData", 1280, struct_WidgetPersistentData, NULL),
|
||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
static const struct YamlNode struct_LayoutPersistentData[] = {
|
static const struct YamlNode struct_LayoutPersistentData[] = {
|
||||||
YAML_ARRAY("zones", 1376, 10, struct_ZonePersistentData, NULL),
|
YAML_ARRAY("zones", 1440, 10, struct_ZonePersistentData, NULL),
|
||||||
YAML_ARRAY("options", 128, 10, struct_ZoneOptionValueTyped, NULL),
|
YAML_ARRAY("options", 128, 10, struct_ZoneOptionValueTyped, NULL),
|
||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
static const struct YamlNode struct_CustomScreenData[] = {
|
static const struct YamlNode struct_CustomScreenData[] = {
|
||||||
YAML_IDX,
|
YAML_IDX,
|
||||||
YAML_STRING("LayoutId", 12),
|
YAML_STRING("LayoutId", 12),
|
||||||
YAML_STRUCT("layoutData", 15040, struct_LayoutPersistentData, NULL),
|
YAML_STRUCT("layoutData", 15680, struct_LayoutPersistentData, NULL),
|
||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
static const struct YamlNode struct_TopBarPersistentData[] = {
|
static const struct YamlNode struct_TopBarPersistentData[] = {
|
||||||
YAML_ARRAY("zones", 1376, 4, struct_ZonePersistentData, NULL),
|
YAML_ARRAY("zones", 1440, 4, struct_ZonePersistentData, NULL),
|
||||||
YAML_ARRAY("options", 128, 1, struct_ZoneOptionValueTyped, NULL),
|
YAML_ARRAY("options", 128, 1, struct_ZoneOptionValueTyped, NULL),
|
||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
@@ -860,8 +860,8 @@ static const struct YamlNode struct_ModelData[] = {
|
|||||||
YAML_UNSIGNED( "potsWarnEnabled", 16 ),
|
YAML_UNSIGNED( "potsWarnEnabled", 16 ),
|
||||||
YAML_ARRAY("potsWarnPosition", 8, 16, struct_signed_8, NULL),
|
YAML_ARRAY("potsWarnPosition", 8, 16, struct_signed_8, NULL),
|
||||||
YAML_ARRAY("telemetrySensors", 112, 60, struct_TelemetrySensor, NULL),
|
YAML_ARRAY("telemetrySensors", 112, 60, struct_TelemetrySensor, NULL),
|
||||||
YAML_ARRAY("screenData", 15136, 10, struct_CustomScreenData, NULL),
|
YAML_ARRAY("screenData", 15776, 10, struct_CustomScreenData, NULL),
|
||||||
YAML_STRUCT("topbarData", 5632, struct_TopBarPersistentData, NULL),
|
YAML_STRUCT("topbarData", 5888, struct_TopBarPersistentData, NULL),
|
||||||
YAML_ARRAY("topbarWidgetWidth", 8, 4, struct_unsigned_8, NULL),
|
YAML_ARRAY("topbarWidgetWidth", 8, 4, struct_unsigned_8, NULL),
|
||||||
YAML_UNSIGNED( "view", 8 ),
|
YAML_UNSIGNED( "view", 8 ),
|
||||||
YAML_STRING("modelRegistrationID", 8),
|
YAML_STRING("modelRegistrationID", 8),
|
||||||
|
|||||||
@@ -786,23 +786,23 @@ static const struct YamlNode struct_WidgetPersistentData[] = {
|
|||||||
};
|
};
|
||||||
static const struct YamlNode struct_ZonePersistentData[] = {
|
static const struct YamlNode struct_ZonePersistentData[] = {
|
||||||
YAML_IDX,
|
YAML_IDX,
|
||||||
YAML_STRING("widgetName", 12),
|
YAML_STRING("widgetName", 20),
|
||||||
YAML_STRUCT("widgetData", 1280, struct_WidgetPersistentData, NULL),
|
YAML_STRUCT("widgetData", 1280, struct_WidgetPersistentData, NULL),
|
||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
static const struct YamlNode struct_LayoutPersistentData[] = {
|
static const struct YamlNode struct_LayoutPersistentData[] = {
|
||||||
YAML_ARRAY("zones", 1376, 10, struct_ZonePersistentData, NULL),
|
YAML_ARRAY("zones", 1440, 10, struct_ZonePersistentData, NULL),
|
||||||
YAML_ARRAY("options", 128, 10, struct_ZoneOptionValueTyped, NULL),
|
YAML_ARRAY("options", 128, 10, struct_ZoneOptionValueTyped, NULL),
|
||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
static const struct YamlNode struct_CustomScreenData[] = {
|
static const struct YamlNode struct_CustomScreenData[] = {
|
||||||
YAML_IDX,
|
YAML_IDX,
|
||||||
YAML_STRING("LayoutId", 12),
|
YAML_STRING("LayoutId", 12),
|
||||||
YAML_STRUCT("layoutData", 15040, struct_LayoutPersistentData, NULL),
|
YAML_STRUCT("layoutData", 15680, struct_LayoutPersistentData, NULL),
|
||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
static const struct YamlNode struct_TopBarPersistentData[] = {
|
static const struct YamlNode struct_TopBarPersistentData[] = {
|
||||||
YAML_ARRAY("zones", 1376, 4, struct_ZonePersistentData, NULL),
|
YAML_ARRAY("zones", 1440, 4, struct_ZonePersistentData, NULL),
|
||||||
YAML_ARRAY("options", 128, 1, struct_ZoneOptionValueTyped, NULL),
|
YAML_ARRAY("options", 128, 1, struct_ZoneOptionValueTyped, NULL),
|
||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
@@ -868,8 +868,8 @@ static const struct YamlNode struct_ModelData[] = {
|
|||||||
YAML_UNSIGNED( "potsWarnEnabled", 16 ),
|
YAML_UNSIGNED( "potsWarnEnabled", 16 ),
|
||||||
YAML_ARRAY("potsWarnPosition", 8, 16, struct_signed_8, NULL),
|
YAML_ARRAY("potsWarnPosition", 8, 16, struct_signed_8, NULL),
|
||||||
YAML_ARRAY("telemetrySensors", 112, 60, struct_TelemetrySensor, NULL),
|
YAML_ARRAY("telemetrySensors", 112, 60, struct_TelemetrySensor, NULL),
|
||||||
YAML_ARRAY("screenData", 15136, 10, struct_CustomScreenData, NULL),
|
YAML_ARRAY("screenData", 15776, 10, struct_CustomScreenData, NULL),
|
||||||
YAML_STRUCT("topbarData", 5632, struct_TopBarPersistentData, NULL),
|
YAML_STRUCT("topbarData", 5888, struct_TopBarPersistentData, NULL),
|
||||||
YAML_ARRAY("topbarWidgetWidth", 8, 4, struct_unsigned_8, NULL),
|
YAML_ARRAY("topbarWidgetWidth", 8, 4, struct_unsigned_8, NULL),
|
||||||
YAML_UNSIGNED( "view", 8 ),
|
YAML_UNSIGNED( "view", 8 ),
|
||||||
YAML_STRING("modelRegistrationID", 8),
|
YAML_STRING("modelRegistrationID", 8),
|
||||||
|
|||||||
@@ -788,23 +788,23 @@ static const struct YamlNode struct_WidgetPersistentData[] = {
|
|||||||
};
|
};
|
||||||
static const struct YamlNode struct_ZonePersistentData[] = {
|
static const struct YamlNode struct_ZonePersistentData[] = {
|
||||||
YAML_IDX,
|
YAML_IDX,
|
||||||
YAML_STRING("widgetName", 12),
|
YAML_STRING("widgetName", 20),
|
||||||
YAML_STRUCT("widgetData", 1280, struct_WidgetPersistentData, NULL),
|
YAML_STRUCT("widgetData", 1280, struct_WidgetPersistentData, NULL),
|
||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
static const struct YamlNode struct_LayoutPersistentData[] = {
|
static const struct YamlNode struct_LayoutPersistentData[] = {
|
||||||
YAML_ARRAY("zones", 1376, 10, struct_ZonePersistentData, NULL),
|
YAML_ARRAY("zones", 1440, 10, struct_ZonePersistentData, NULL),
|
||||||
YAML_ARRAY("options", 128, 10, struct_ZoneOptionValueTyped, NULL),
|
YAML_ARRAY("options", 128, 10, struct_ZoneOptionValueTyped, NULL),
|
||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
static const struct YamlNode struct_CustomScreenData[] = {
|
static const struct YamlNode struct_CustomScreenData[] = {
|
||||||
YAML_IDX,
|
YAML_IDX,
|
||||||
YAML_STRING("LayoutId", 12),
|
YAML_STRING("LayoutId", 12),
|
||||||
YAML_STRUCT("layoutData", 15040, struct_LayoutPersistentData, NULL),
|
YAML_STRUCT("layoutData", 15680, struct_LayoutPersistentData, NULL),
|
||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
static const struct YamlNode struct_TopBarPersistentData[] = {
|
static const struct YamlNode struct_TopBarPersistentData[] = {
|
||||||
YAML_ARRAY("zones", 1376, 6, struct_ZonePersistentData, NULL),
|
YAML_ARRAY("zones", 1440, 6, struct_ZonePersistentData, NULL),
|
||||||
YAML_ARRAY("options", 128, 1, struct_ZoneOptionValueTyped, NULL),
|
YAML_ARRAY("options", 128, 1, struct_ZoneOptionValueTyped, NULL),
|
||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
@@ -881,8 +881,8 @@ static const struct YamlNode struct_ModelData[] = {
|
|||||||
YAML_UNSIGNED( "potsWarnEnabled", 16 ),
|
YAML_UNSIGNED( "potsWarnEnabled", 16 ),
|
||||||
YAML_ARRAY("potsWarnPosition", 8, 16, struct_signed_8, NULL),
|
YAML_ARRAY("potsWarnPosition", 8, 16, struct_signed_8, NULL),
|
||||||
YAML_ARRAY("telemetrySensors", 112, 60, struct_TelemetrySensor, NULL),
|
YAML_ARRAY("telemetrySensors", 112, 60, struct_TelemetrySensor, NULL),
|
||||||
YAML_ARRAY("screenData", 15136, 10, struct_CustomScreenData, NULL),
|
YAML_ARRAY("screenData", 15776, 10, struct_CustomScreenData, NULL),
|
||||||
YAML_STRUCT("topbarData", 8384, struct_TopBarPersistentData, NULL),
|
YAML_STRUCT("topbarData", 8768, struct_TopBarPersistentData, NULL),
|
||||||
YAML_ARRAY("topbarWidgetWidth", 8, 6, struct_unsigned_8, NULL),
|
YAML_ARRAY("topbarWidgetWidth", 8, 6, struct_unsigned_8, NULL),
|
||||||
YAML_UNSIGNED( "view", 8 ),
|
YAML_UNSIGNED( "view", 8 ),
|
||||||
YAML_STRING("modelRegistrationID", 8),
|
YAML_STRING("modelRegistrationID", 8),
|
||||||
|
|||||||
@@ -788,23 +788,23 @@ static const struct YamlNode struct_WidgetPersistentData[] = {
|
|||||||
};
|
};
|
||||||
static const struct YamlNode struct_ZonePersistentData[] = {
|
static const struct YamlNode struct_ZonePersistentData[] = {
|
||||||
YAML_IDX,
|
YAML_IDX,
|
||||||
YAML_STRING("widgetName", 12),
|
YAML_STRING("widgetName", 20),
|
||||||
YAML_STRUCT("widgetData", 1280, struct_WidgetPersistentData, NULL),
|
YAML_STRUCT("widgetData", 1280, struct_WidgetPersistentData, NULL),
|
||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
static const struct YamlNode struct_LayoutPersistentData[] = {
|
static const struct YamlNode struct_LayoutPersistentData[] = {
|
||||||
YAML_ARRAY("zones", 1376, 10, struct_ZonePersistentData, NULL),
|
YAML_ARRAY("zones", 1440, 10, struct_ZonePersistentData, NULL),
|
||||||
YAML_ARRAY("options", 128, 10, struct_ZoneOptionValueTyped, NULL),
|
YAML_ARRAY("options", 128, 10, struct_ZoneOptionValueTyped, NULL),
|
||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
static const struct YamlNode struct_CustomScreenData[] = {
|
static const struct YamlNode struct_CustomScreenData[] = {
|
||||||
YAML_IDX,
|
YAML_IDX,
|
||||||
YAML_STRING("LayoutId", 12),
|
YAML_STRING("LayoutId", 12),
|
||||||
YAML_STRUCT("layoutData", 15040, struct_LayoutPersistentData, NULL),
|
YAML_STRUCT("layoutData", 15680, struct_LayoutPersistentData, NULL),
|
||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
static const struct YamlNode struct_TopBarPersistentData[] = {
|
static const struct YamlNode struct_TopBarPersistentData[] = {
|
||||||
YAML_ARRAY("zones", 1376, 6, struct_ZonePersistentData, NULL),
|
YAML_ARRAY("zones", 1440, 6, struct_ZonePersistentData, NULL),
|
||||||
YAML_ARRAY("options", 128, 1, struct_ZoneOptionValueTyped, NULL),
|
YAML_ARRAY("options", 128, 1, struct_ZoneOptionValueTyped, NULL),
|
||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
@@ -874,8 +874,8 @@ static const struct YamlNode struct_ModelData[] = {
|
|||||||
YAML_UNSIGNED( "potsWarnEnabled", 16 ),
|
YAML_UNSIGNED( "potsWarnEnabled", 16 ),
|
||||||
YAML_ARRAY("potsWarnPosition", 8, 16, struct_signed_8, NULL),
|
YAML_ARRAY("potsWarnPosition", 8, 16, struct_signed_8, NULL),
|
||||||
YAML_ARRAY("telemetrySensors", 112, 60, struct_TelemetrySensor, NULL),
|
YAML_ARRAY("telemetrySensors", 112, 60, struct_TelemetrySensor, NULL),
|
||||||
YAML_ARRAY("screenData", 15136, 10, struct_CustomScreenData, NULL),
|
YAML_ARRAY("screenData", 15776, 10, struct_CustomScreenData, NULL),
|
||||||
YAML_STRUCT("topbarData", 8384, struct_TopBarPersistentData, NULL),
|
YAML_STRUCT("topbarData", 8768, struct_TopBarPersistentData, NULL),
|
||||||
YAML_ARRAY("topbarWidgetWidth", 8, 6, struct_unsigned_8, NULL),
|
YAML_ARRAY("topbarWidgetWidth", 8, 6, struct_unsigned_8, NULL),
|
||||||
YAML_UNSIGNED( "view", 8 ),
|
YAML_UNSIGNED( "view", 8 ),
|
||||||
YAML_STRING("modelRegistrationID", 8),
|
YAML_STRING("modelRegistrationID", 8),
|
||||||
|
|||||||
@@ -787,23 +787,23 @@ static const struct YamlNode struct_WidgetPersistentData[] = {
|
|||||||
};
|
};
|
||||||
static const struct YamlNode struct_ZonePersistentData[] = {
|
static const struct YamlNode struct_ZonePersistentData[] = {
|
||||||
YAML_IDX,
|
YAML_IDX,
|
||||||
YAML_STRING("widgetName", 12),
|
YAML_STRING("widgetName", 20),
|
||||||
YAML_STRUCT("widgetData", 1280, struct_WidgetPersistentData, NULL),
|
YAML_STRUCT("widgetData", 1280, struct_WidgetPersistentData, NULL),
|
||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
static const struct YamlNode struct_LayoutPersistentData[] = {
|
static const struct YamlNode struct_LayoutPersistentData[] = {
|
||||||
YAML_ARRAY("zones", 1376, 10, struct_ZonePersistentData, NULL),
|
YAML_ARRAY("zones", 1440, 10, struct_ZonePersistentData, NULL),
|
||||||
YAML_ARRAY("options", 128, 10, struct_ZoneOptionValueTyped, NULL),
|
YAML_ARRAY("options", 128, 10, struct_ZoneOptionValueTyped, NULL),
|
||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
static const struct YamlNode struct_CustomScreenData[] = {
|
static const struct YamlNode struct_CustomScreenData[] = {
|
||||||
YAML_IDX,
|
YAML_IDX,
|
||||||
YAML_STRING("LayoutId", 12),
|
YAML_STRING("LayoutId", 12),
|
||||||
YAML_STRUCT("layoutData", 15040, struct_LayoutPersistentData, NULL),
|
YAML_STRUCT("layoutData", 15680, struct_LayoutPersistentData, NULL),
|
||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
static const struct YamlNode struct_TopBarPersistentData[] = {
|
static const struct YamlNode struct_TopBarPersistentData[] = {
|
||||||
YAML_ARRAY("zones", 1376, 6, struct_ZonePersistentData, NULL),
|
YAML_ARRAY("zones", 1440, 6, struct_ZonePersistentData, NULL),
|
||||||
YAML_ARRAY("options", 128, 1, struct_ZoneOptionValueTyped, NULL),
|
YAML_ARRAY("options", 128, 1, struct_ZoneOptionValueTyped, NULL),
|
||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
@@ -868,8 +868,8 @@ static const struct YamlNode struct_ModelData[] = {
|
|||||||
YAML_UNSIGNED( "potsWarnEnabled", 16 ),
|
YAML_UNSIGNED( "potsWarnEnabled", 16 ),
|
||||||
YAML_ARRAY("potsWarnPosition", 8, 16, struct_signed_8, NULL),
|
YAML_ARRAY("potsWarnPosition", 8, 16, struct_signed_8, NULL),
|
||||||
YAML_ARRAY("telemetrySensors", 112, 60, struct_TelemetrySensor, NULL),
|
YAML_ARRAY("telemetrySensors", 112, 60, struct_TelemetrySensor, NULL),
|
||||||
YAML_ARRAY("screenData", 15136, 10, struct_CustomScreenData, NULL),
|
YAML_ARRAY("screenData", 15776, 10, struct_CustomScreenData, NULL),
|
||||||
YAML_STRUCT("topbarData", 8384, struct_TopBarPersistentData, NULL),
|
YAML_STRUCT("topbarData", 8768, struct_TopBarPersistentData, NULL),
|
||||||
YAML_ARRAY("topbarWidgetWidth", 8, 6, struct_unsigned_8, NULL),
|
YAML_ARRAY("topbarWidgetWidth", 8, 6, struct_unsigned_8, NULL),
|
||||||
YAML_UNSIGNED( "view", 8 ),
|
YAML_UNSIGNED( "view", 8 ),
|
||||||
YAML_STRING("modelRegistrationID", 8),
|
YAML_STRING("modelRegistrationID", 8),
|
||||||
|
|||||||
Reference in New Issue
Block a user