Skip to content

Commit

Permalink
update gui for new logic switch type
Browse files Browse the repository at this point in the history
  • Loading branch information
shane-droid committed Jun 14, 2022
1 parent 0d95f2f commit 6fd47d7
Show file tree
Hide file tree
Showing 23 changed files with 64 additions and 34 deletions.
1 change: 1 addition & 0 deletions radio/src/dataconstants.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ enum CurveType {
#endif

#define LEN_SPEC_FN_NAME 10
#define LEN_LOGICSW_NAME 10

#if defined(PCBFRSKY) || defined(PCBNV14)
#define NUM_MODULES 2
Expand Down
24 changes: 12 additions & 12 deletions radio/src/datastructs.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ static inline void check_struct()
CHKSIZE(MixData, 20);
CHKSIZE(ExpoData, 17);
CHKSIZE(LimitData, 11);
CHKSIZE(LogicalSwitchData, 9);
CHKSIZE(LogicalSwitchData, 19);
CHKSIZE(CustomFunctionData, 21);
CHKSIZE(FlightModeData, 28 + 2*NUM_TRIMS);
CHKSIZE(TimerData, 11);
Expand All @@ -65,7 +65,7 @@ static inline void check_struct()
CHKSIZE(MixData, 20);
CHKSIZE(ExpoData, 17);
CHKSIZE(LimitData, 13);
CHKSIZE(LogicalSwitchData, 9);
CHKSIZE(LogicalSwitchData, 19);
CHKSIZE(CustomFunctionData, 21);
CHKSIZE(FlightModeData, 40);
CHKSIZE(TimerData, 16);
Expand Down Expand Up @@ -109,7 +109,7 @@ static inline void check_struct()

#endif /* board specific ifdefs*/

CHKSIZE(LogicalSwitchData, 9);
CHKSIZE(LogicalSwitchData, 19);
CHKSIZE(TelemetrySensor, 14);
CHKSIZE(ModuleData, 29);
CHKSIZE(GVarData, 7);
Expand All @@ -118,33 +118,33 @@ static inline void check_struct()

#if defined(PCBXLITES)
CHKSIZE(RadioData, 1501);
CHKSIZE(ModelData, 6801);
CHKSIZE(ModelData, 7441);
#elif defined(PCBXLITE)
CHKSIZE(RadioData, 1499);
CHKSIZE(ModelData, 6801);
CHKSIZE(ModelData, 7441);
#elif defined(RADIO_TPRO)
CHKSIZE(RadioData, 1482);
CHKSIZE(ModelData, 6826);
CHKSIZE(ModelData, 7466);
#elif defined(PCBX7)
CHKSIZE(RadioData, 1505);
CHKSIZE(ModelData, 6801);
CHKSIZE(ModelData, 7441);
#elif defined(PCBX9E)
CHKSIZE(RadioData, 1595);
CHKSIZE(ModelData, 7253);
CHKSIZE(ModelData, 7893);
#elif defined(PCBX9D) || defined(PCBX9DP)
CHKSIZE(RadioData, 1537);
CHKSIZE(ModelData, 7245);
CHKSIZE(ModelData, 7885);
#elif defined(PCBHORUS)
#if defined(PCBX10)
CHKSIZE(RadioData, 1561);
CHKSIZE(ModelData, 11665);
CHKSIZE(ModelData, 12305);
#else
CHKSIZE(RadioData, 1543);
CHKSIZE(ModelData, 11663);
CHKSIZE(ModelData, 12303);
#endif
#elif defined(PCBNV14)
CHKSIZE(RadioData, 1491);
CHKSIZE(ModelData, 11479);
CHKSIZE(ModelData, 12119);
#endif

#undef CHKSIZE
Expand Down
1 change: 1 addition & 0 deletions radio/src/datastructs_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ PACK(struct LogicalSwitchData {
int16_t v2 SKIP;
uint8_t delay;
uint8_t duration;
NOBACKUP(char custName[LEN_LOGICSW_NAME]);
});

/*
Expand Down
21 changes: 15 additions & 6 deletions radio/src/gui/colorlcd/model_logical_switches.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ class LogicalSwitchEditPage: public Page

LogicalSwitchData * cs = lswAddress(index);
uint8_t cstate = lswFamily(cs->func);

// custom label
new StaticText(logicalSwitchOneWindow, grid.getLabelSlot(), STR_CUST_LOGICALSWITCH_LABEL, 0, COLOR_THEME_PRIMARY1);
new ModelTextEdit(logicalSwitchOneWindow, grid.getFieldSlot(), cs->custName, LEN_LOGICSW_NAME);
grid.nextLine();
if (cstate == LS_FAMILY_BOOL || cstate == LS_FAMILY_STICKY || cs->func == LS_FUNC_SAFE) {
new StaticText(logicalSwitchOneWindow, grid.getLabelSlot(), STR_V1, 0, COLOR_THEME_PRIMARY1);
auto choice = new SwitchChoice(logicalSwitchOneWindow, grid.getFieldSlot(), SWSRC_FIRST_IN_LOGICAL_SWITCHES, SWSRC_LAST_IN_LOGICAL_SWITCHES, GET_SET_DEFAULT(cs->v1));
Expand Down Expand Up @@ -255,6 +258,7 @@ class LogicalSwitchEditPage: public Page

static constexpr coord_t line1 = FIELD_PADDING_TOP;
static constexpr coord_t line2 = line1 + PAGE_LINE_HEIGHT;
static constexpr coord_t line3 = line2 + PAGE_LINE_HEIGHT;
static constexpr coord_t col1 = 20;
static constexpr coord_t col2 = (LCD_W - 100) / 3 + col1;
static constexpr coord_t col3 = ((LCD_W - 100) / 3) * 2 + col1;
Expand Down Expand Up @@ -291,8 +295,8 @@ class LogicalSwitchButton : public Button
uint8_t lsFamily = lswFamily(ls->func);

// CSW func
dc->drawTextAtIndex(col1, line1, STR_VCSWFUNC, ls->func, COLOR_THEME_SECONDARY1);

//dc->drawTextAtIndex(col1, line1, STR_VCSWFUNC, ls->func, COLOR_THEME_SECONDARY1);
dc->drawText(col1, line1, ls->custName, COLOR_THEME_SECONDARY1);
// CSW params
if (lsFamily == LS_FAMILY_BOOL || lsFamily == LS_FAMILY_STICKY || ls->func ==LS_FUNC_SAFE) {
drawSwitch(dc, col2, line1, ls->v1, COLOR_THEME_SECONDARY1);
Expand Down Expand Up @@ -324,15 +328,20 @@ class LogicalSwitchButton : public Button
if (lsFamily != LS_FAMILY_EDGE && ls->delay > 0) {
dc->drawNumber(col3, line2, ls->delay, COLOR_THEME_SECONDARY1 | PREC1 | LEFT);
}
// switch custom name
//dc->drawText(col1, line3, "somename", COLOR_THEME_SECONDARY1);
}

void paint(BitmapBuffer* dc) override
{
if (active)
if (active){
dc->drawSolidFilledRect(0, 0, rect.w, rect.h, COLOR_THEME_ACTIVE);
else
dc->drawText(col1, line3, "somename", COLOR_THEME_SECONDARY1);
}
else{
dc->drawSolidFilledRect(0, 0, rect.w, rect.h, COLOR_THEME_PRIMARY2);

dc->drawText(col1, line3, "somename", COLOR_THEME_SECONDARY1);
}
paintLogicalSwitchLine(dc);

// The bounding rect
Expand Down
3 changes: 2 additions & 1 deletion radio/src/storage/yaml/yaml_datastructs_nv14.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,7 @@ static const struct YamlNode struct_LogicalSwitchData[] = {
YAML_PADDING( 16 ),
YAML_UNSIGNED( "delay", 8 ),
YAML_UNSIGNED( "duration", 8 ),
YAML_STRING("custName", 10),
YAML_END
};
static const struct YamlNode struct_SwashRingData[] = {
Expand Down Expand Up @@ -859,7 +860,7 @@ static const struct YamlNode struct_ModelData[] = {
YAML_ARRAY("expoData", 136, 64, struct_ExpoData, NULL),
YAML_ARRAY("curves", 32, 32, struct_CurveHeader, NULL),
YAML_ARRAY("points", 8, 512, struct_signed_8, NULL),
YAML_ARRAY("logicalSw", 72, 64, struct_LogicalSwitchData, NULL),
YAML_ARRAY("logicalSw", 152, 64, struct_LogicalSwitchData, NULL),
YAML_ARRAY("customFn", 152, 64, struct_CustomFunctionData, cfn_is_active),
YAML_STRUCT("swashR", 64, struct_SwashRingData, swash_is_active),
YAML_ARRAY("flightModeData", 320, 9, struct_FlightModeData, fmd_is_active),
Expand Down
3 changes: 2 additions & 1 deletion radio/src/storage/yaml/yaml_datastructs_t12.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,7 @@ static const struct YamlNode struct_LogicalSwitchData[] = {
YAML_PADDING( 16 ),
YAML_UNSIGNED( "delay", 8 ),
YAML_UNSIGNED( "duration", 8 ),
YAML_STRING("custName", 10),
YAML_END
};
static const struct YamlNode struct_SwashRingData[] = {
Expand Down Expand Up @@ -829,7 +830,7 @@ static const struct YamlNode struct_ModelData[] = {
YAML_ARRAY("expoData", 136, 64, struct_ExpoData, NULL),
YAML_ARRAY("curves", 32, 32, struct_CurveHeader, NULL),
YAML_ARRAY("points", 8, 512, struct_signed_8, NULL),
YAML_ARRAY("logicalSw", 72, 64, struct_LogicalSwitchData, NULL),
YAML_ARRAY("logicalSw", 152, 64, struct_LogicalSwitchData, NULL),
YAML_ARRAY("customFn", 168, 64, struct_CustomFunctionData, cfn_is_active),
YAML_STRUCT("swashR", 64, struct_SwashRingData, swash_is_active),
YAML_ARRAY("flightModeData", 288, 9, struct_FlightModeData, fmd_is_active),
Expand Down
3 changes: 2 additions & 1 deletion radio/src/storage/yaml/yaml_datastructs_t8.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,7 @@ static const struct YamlNode struct_LogicalSwitchData[] = {
YAML_PADDING( 16 ),
YAML_UNSIGNED( "delay", 8 ),
YAML_UNSIGNED( "duration", 8 ),
YAML_STRING("custName", 10),
YAML_END
};
static const struct YamlNode struct_SwashRingData[] = {
Expand Down Expand Up @@ -829,7 +830,7 @@ static const struct YamlNode struct_ModelData[] = {
YAML_ARRAY("expoData", 136, 64, struct_ExpoData, NULL),
YAML_ARRAY("curves", 32, 32, struct_CurveHeader, NULL),
YAML_ARRAY("points", 8, 512, struct_signed_8, NULL),
YAML_ARRAY("logicalSw", 72, 64, struct_LogicalSwitchData, NULL),
YAML_ARRAY("logicalSw", 152, 64, struct_LogicalSwitchData, NULL),
YAML_ARRAY("customFn", 168, 64, struct_CustomFunctionData, cfn_is_active),
YAML_STRUCT("swashR", 64, struct_SwashRingData, swash_is_active),
YAML_ARRAY("flightModeData", 288, 9, struct_FlightModeData, fmd_is_active),
Expand Down
3 changes: 2 additions & 1 deletion radio/src/storage/yaml/yaml_datastructs_tlite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,7 @@ static const struct YamlNode struct_LogicalSwitchData[] = {
YAML_PADDING( 16 ),
YAML_UNSIGNED( "delay", 8 ),
YAML_UNSIGNED( "duration", 8 ),
YAML_STRING("custName", 10),
YAML_END
};
static const struct YamlNode struct_SwashRingData[] = {
Expand Down Expand Up @@ -829,7 +830,7 @@ static const struct YamlNode struct_ModelData[] = {
YAML_ARRAY("expoData", 136, 64, struct_ExpoData, NULL),
YAML_ARRAY("curves", 32, 32, struct_CurveHeader, NULL),
YAML_ARRAY("points", 8, 512, struct_signed_8, NULL),
YAML_ARRAY("logicalSw", 72, 64, struct_LogicalSwitchData, NULL),
YAML_ARRAY("logicalSw", 152, 64, struct_LogicalSwitchData, NULL),
YAML_ARRAY("customFn", 168, 64, struct_CustomFunctionData, cfn_is_active),
YAML_STRUCT("swashR", 64, struct_SwashRingData, swash_is_active),
YAML_ARRAY("flightModeData", 288, 9, struct_FlightModeData, fmd_is_active),
Expand Down
3 changes: 2 additions & 1 deletion radio/src/storage/yaml/yaml_datastructs_tpro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ static const struct YamlNode struct_LogicalSwitchData[] = {
YAML_PADDING( 16 ),
YAML_UNSIGNED( "delay", 8 ),
YAML_UNSIGNED( "duration", 8 ),
YAML_STRING("custName", 10),
YAML_END
};
static const struct YamlNode struct_SwashRingData[] = {
Expand Down Expand Up @@ -835,7 +836,7 @@ static const struct YamlNode struct_ModelData[] = {
YAML_ARRAY("expoData", 136, 64, struct_ExpoData, NULL),
YAML_ARRAY("curves", 32, 32, struct_CurveHeader, NULL),
YAML_ARRAY("points", 8, 512, struct_signed_8, NULL),
YAML_ARRAY("logicalSw", 72, 64, struct_LogicalSwitchData, NULL),
YAML_ARRAY("logicalSw", 152, 64, struct_LogicalSwitchData, NULL),
YAML_ARRAY("customFn", 168, 64, struct_CustomFunctionData, cfn_is_active),
YAML_STRUCT("swashR", 64, struct_SwashRingData, swash_is_active),
YAML_ARRAY("flightModeData", 288, 9, struct_FlightModeData, fmd_is_active),
Expand Down
3 changes: 2 additions & 1 deletion radio/src/storage/yaml/yaml_datastructs_tx12.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,7 @@ static const struct YamlNode struct_LogicalSwitchData[] = {
YAML_PADDING( 16 ),
YAML_UNSIGNED( "delay", 8 ),
YAML_UNSIGNED( "duration", 8 ),
YAML_STRING("custName", 10),
YAML_END
};
static const struct YamlNode struct_SwashRingData[] = {
Expand Down Expand Up @@ -829,7 +830,7 @@ static const struct YamlNode struct_ModelData[] = {
YAML_ARRAY("expoData", 136, 64, struct_ExpoData, NULL),
YAML_ARRAY("curves", 32, 32, struct_CurveHeader, NULL),
YAML_ARRAY("points", 8, 512, struct_signed_8, NULL),
YAML_ARRAY("logicalSw", 72, 64, struct_LogicalSwitchData, NULL),
YAML_ARRAY("logicalSw", 152, 64, struct_LogicalSwitchData, NULL),
YAML_ARRAY("customFn", 168, 64, struct_CustomFunctionData, cfn_is_active),
YAML_STRUCT("swashR", 64, struct_SwashRingData, swash_is_active),
YAML_ARRAY("flightModeData", 288, 9, struct_FlightModeData, fmd_is_active),
Expand Down
3 changes: 2 additions & 1 deletion radio/src/storage/yaml/yaml_datastructs_x10.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,7 @@ static const struct YamlNode struct_LogicalSwitchData[] = {
YAML_PADDING( 16 ),
YAML_UNSIGNED( "delay", 8 ),
YAML_UNSIGNED( "duration", 8 ),
YAML_STRING("custName", 10),
YAML_END
};
static const struct YamlNode struct_SwashRingData[] = {
Expand Down Expand Up @@ -879,7 +880,7 @@ static const struct YamlNode struct_ModelData[] = {
YAML_ARRAY("expoData", 136, 64, struct_ExpoData, NULL),
YAML_ARRAY("curves", 32, 32, struct_CurveHeader, NULL),
YAML_ARRAY("points", 8, 512, struct_signed_8, NULL),
YAML_ARRAY("logicalSw", 72, 64, struct_LogicalSwitchData, NULL),
YAML_ARRAY("logicalSw", 152, 64, struct_LogicalSwitchData, NULL),
YAML_ARRAY("customFn", 152, 64, struct_CustomFunctionData, cfn_is_active),
YAML_STRUCT("swashR", 64, struct_SwashRingData, swash_is_active),
YAML_ARRAY("flightModeData", 352, 9, struct_FlightModeData, fmd_is_active),
Expand Down
3 changes: 2 additions & 1 deletion radio/src/storage/yaml/yaml_datastructs_x12s.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,7 @@ static const struct YamlNode struct_LogicalSwitchData[] = {
YAML_PADDING( 16 ),
YAML_UNSIGNED( "delay", 8 ),
YAML_UNSIGNED( "duration", 8 ),
YAML_STRING("custName", 10),
YAML_END
};
static const struct YamlNode struct_SwashRingData[] = {
Expand Down Expand Up @@ -877,7 +878,7 @@ static const struct YamlNode struct_ModelData[] = {
YAML_ARRAY("expoData", 136, 64, struct_ExpoData, NULL),
YAML_ARRAY("curves", 32, 32, struct_CurveHeader, NULL),
YAML_ARRAY("points", 8, 512, struct_signed_8, NULL),
YAML_ARRAY("logicalSw", 72, 64, struct_LogicalSwitchData, NULL),
YAML_ARRAY("logicalSw", 152, 64, struct_LogicalSwitchData, NULL),
YAML_ARRAY("customFn", 152, 64, struct_CustomFunctionData, cfn_is_active),
YAML_STRUCT("swashR", 64, struct_SwashRingData, swash_is_active),
YAML_ARRAY("flightModeData", 352, 9, struct_FlightModeData, fmd_is_active),
Expand Down
3 changes: 2 additions & 1 deletion radio/src/storage/yaml/yaml_datastructs_x7.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,7 @@ static const struct YamlNode struct_LogicalSwitchData[] = {
YAML_PADDING( 16 ),
YAML_UNSIGNED( "delay", 8 ),
YAML_UNSIGNED( "duration", 8 ),
YAML_STRING("custName", 10),
YAML_END
};
static const struct YamlNode struct_SwashRingData[] = {
Expand Down Expand Up @@ -829,7 +830,7 @@ static const struct YamlNode struct_ModelData[] = {
YAML_ARRAY("expoData", 136, 64, struct_ExpoData, NULL),
YAML_ARRAY("curves", 32, 32, struct_CurveHeader, NULL),
YAML_ARRAY("points", 8, 512, struct_signed_8, NULL),
YAML_ARRAY("logicalSw", 72, 64, struct_LogicalSwitchData, NULL),
YAML_ARRAY("logicalSw", 152, 64, struct_LogicalSwitchData, NULL),
YAML_ARRAY("customFn", 168, 64, struct_CustomFunctionData, cfn_is_active),
YAML_STRUCT("swashR", 64, struct_SwashRingData, swash_is_active),
YAML_ARRAY("flightModeData", 288, 9, struct_FlightModeData, fmd_is_active),
Expand Down
3 changes: 2 additions & 1 deletion radio/src/storage/yaml/yaml_datastructs_x9d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,7 @@ static const struct YamlNode struct_LogicalSwitchData[] = {
YAML_PADDING( 16 ),
YAML_UNSIGNED( "delay", 8 ),
YAML_UNSIGNED( "duration", 8 ),
YAML_STRING("custName", 10),
YAML_END
};
static const struct YamlNode struct_SwashRingData[] = {
Expand Down Expand Up @@ -842,7 +843,7 @@ static const struct YamlNode struct_ModelData[] = {
YAML_ARRAY("expoData", 136, 64, struct_ExpoData, NULL),
YAML_ARRAY("curves", 32, 32, struct_CurveHeader, NULL),
YAML_ARRAY("points", 8, 512, struct_signed_8, NULL),
YAML_ARRAY("logicalSw", 72, 64, struct_LogicalSwitchData, NULL),
YAML_ARRAY("logicalSw", 152, 64, struct_LogicalSwitchData, NULL),
YAML_ARRAY("customFn", 168, 64, struct_CustomFunctionData, cfn_is_active),
YAML_STRUCT("swashR", 64, struct_SwashRingData, swash_is_active),
YAML_ARRAY("flightModeData", 320, 9, struct_FlightModeData, fmd_is_active),
Expand Down
3 changes: 2 additions & 1 deletion radio/src/storage/yaml/yaml_datastructs_x9e.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,7 @@ static const struct YamlNode struct_LogicalSwitchData[] = {
YAML_PADDING( 16 ),
YAML_UNSIGNED( "delay", 8 ),
YAML_UNSIGNED( "duration", 8 ),
YAML_STRING("custName", 10),
YAML_END
};
static const struct YamlNode struct_SwashRingData[] = {
Expand Down Expand Up @@ -881,7 +882,7 @@ static const struct YamlNode struct_ModelData[] = {
YAML_ARRAY("expoData", 136, 64, struct_ExpoData, NULL),
YAML_ARRAY("curves", 32, 32, struct_CurveHeader, NULL),
YAML_ARRAY("points", 8, 512, struct_signed_8, NULL),
YAML_ARRAY("logicalSw", 72, 64, struct_LogicalSwitchData, NULL),
YAML_ARRAY("logicalSw", 152, 64, struct_LogicalSwitchData, NULL),
YAML_ARRAY("customFn", 168, 64, struct_CustomFunctionData, cfn_is_active),
YAML_STRUCT("swashR", 64, struct_SwashRingData, swash_is_active),
YAML_ARRAY("flightModeData", 320, 9, struct_FlightModeData, fmd_is_active),
Expand Down
3 changes: 2 additions & 1 deletion radio/src/storage/yaml/yaml_datastructs_x9lite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@ static const struct YamlNode struct_LogicalSwitchData[] = {
YAML_PADDING( 16 ),
YAML_UNSIGNED( "delay", 8 ),
YAML_UNSIGNED( "duration", 8 ),
YAML_STRING("custName", 10),
YAML_END
};
static const struct YamlNode struct_SwashRingData[] = {
Expand Down Expand Up @@ -814,7 +815,7 @@ static const struct YamlNode struct_ModelData[] = {
YAML_ARRAY("expoData", 136, 64, struct_ExpoData, NULL),
YAML_ARRAY("curves", 32, 32, struct_CurveHeader, NULL),
YAML_ARRAY("points", 8, 512, struct_signed_8, NULL),
YAML_ARRAY("logicalSw", 72, 64, struct_LogicalSwitchData, NULL),
YAML_ARRAY("logicalSw", 152, 64, struct_LogicalSwitchData, NULL),
YAML_ARRAY("customFn", 168, 64, struct_CustomFunctionData, cfn_is_active),
YAML_STRUCT("swashR", 64, struct_SwashRingData, swash_is_active),
YAML_ARRAY("flightModeData", 288, 9, struct_FlightModeData, fmd_is_active),
Expand Down
3 changes: 2 additions & 1 deletion radio/src/storage/yaml/yaml_datastructs_x9lites.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,7 @@ static const struct YamlNode struct_LogicalSwitchData[] = {
YAML_PADDING( 16 ),
YAML_UNSIGNED( "delay", 8 ),
YAML_UNSIGNED( "duration", 8 ),
YAML_STRING("custName", 10),
YAML_END
};
static const struct YamlNode struct_SwashRingData[] = {
Expand Down Expand Up @@ -824,7 +825,7 @@ static const struct YamlNode struct_ModelData[] = {
YAML_ARRAY("expoData", 136, 64, struct_ExpoData, NULL),
YAML_ARRAY("curves", 32, 32, struct_CurveHeader, NULL),
YAML_ARRAY("points", 8, 512, struct_signed_8, NULL),
YAML_ARRAY("logicalSw", 72, 64, struct_LogicalSwitchData, NULL),
YAML_ARRAY("logicalSw", 152, 64, struct_LogicalSwitchData, NULL),
YAML_ARRAY("customFn", 168, 64, struct_CustomFunctionData, cfn_is_active),
YAML_STRUCT("swashR", 64, struct_SwashRingData, swash_is_active),
YAML_ARRAY("flightModeData", 288, 9, struct_FlightModeData, fmd_is_active),
Expand Down
3 changes: 2 additions & 1 deletion radio/src/storage/yaml/yaml_datastructs_xlite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,7 @@ static const struct YamlNode struct_LogicalSwitchData[] = {
YAML_PADDING( 16 ),
YAML_UNSIGNED( "delay", 8 ),
YAML_UNSIGNED( "duration", 8 ),
YAML_STRING("custName", 10),
YAML_END
};
static const struct YamlNode struct_SwashRingData[] = {
Expand Down Expand Up @@ -821,7 +822,7 @@ static const struct YamlNode struct_ModelData[] = {
YAML_ARRAY("expoData", 136, 64, struct_ExpoData, NULL),
YAML_ARRAY("curves", 32, 32, struct_CurveHeader, NULL),
YAML_ARRAY("points", 8, 512, struct_signed_8, NULL),
YAML_ARRAY("logicalSw", 72, 64, struct_LogicalSwitchData, NULL),
YAML_ARRAY("logicalSw", 152, 64, struct_LogicalSwitchData, NULL),
YAML_ARRAY("customFn", 168, 64, struct_CustomFunctionData, cfn_is_active),
YAML_STRUCT("swashR", 64, struct_SwashRingData, swash_is_active),
YAML_ARRAY("flightModeData", 288, 9, struct_FlightModeData, fmd_is_active),
Expand Down
3 changes: 2 additions & 1 deletion radio/src/storage/yaml/yaml_datastructs_xlites.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,7 @@ static const struct YamlNode struct_LogicalSwitchData[] = {
YAML_PADDING( 16 ),
YAML_UNSIGNED( "delay", 8 ),
YAML_UNSIGNED( "duration", 8 ),
YAML_STRING("custName", 10),
YAML_END
};
static const struct YamlNode struct_SwashRingData[] = {
Expand Down Expand Up @@ -825,7 +826,7 @@ static const struct YamlNode struct_ModelData[] = {
YAML_ARRAY("expoData", 136, 64, struct_ExpoData, NULL),
YAML_ARRAY("curves", 32, 32, struct_CurveHeader, NULL),
YAML_ARRAY("points", 8, 512, struct_signed_8, NULL),
YAML_ARRAY("logicalSw", 72, 64, struct_LogicalSwitchData, NULL),
YAML_ARRAY("logicalSw", 152, 64, struct_LogicalSwitchData, NULL),
YAML_ARRAY("customFn", 168, 64, struct_CustomFunctionData, cfn_is_active),
YAML_STRUCT("swashR", 64, struct_SwashRingData, swash_is_active),
YAML_ARRAY("flightModeData", 288, 9, struct_FlightModeData, fmd_is_active),
Expand Down
Loading

0 comments on commit 6fd47d7

Please sign in to comment.