feat(bw): add collapsable sections to B&W radio setup tab (#5529)

This commit is contained in:
philmoz
2024-09-30 09:35:45 +10:00
committed by GitHub
parent 149e1a2df0
commit 0b16dee15f
4 changed files with 198 additions and 171 deletions
+4 -19
View File
@@ -205,28 +205,13 @@ PACK(struct ExpandState {
uint8_t viewOpt:1;
});
struct ExpandState expandState;
static struct ExpandState expandState;
uint8_t PREFLIGHT_ROW(uint8_t value)
{
if (expandState.preflight)
return value;
return HIDDEN_ROW;
}
static uint8_t PREFLIGHT_ROW(uint8_t value) { return expandState.preflight ? value : HIDDEN_ROW; }
uint8_t THROTTLE_ROW(uint8_t value)
{
if (expandState.throttle)
return value;
return HIDDEN_ROW;
}
static uint8_t THROTTLE_ROW(uint8_t value) { return expandState.throttle ? value : HIDDEN_ROW; }
uint8_t VIEWOPT_ROW(uint8_t value)
{
if (expandState.viewOpt)
return value;
return HIDDEN_ROW;
}
static uint8_t VIEWOPT_ROW(uint8_t value) { return expandState.viewOpt ? value : HIDDEN_ROW; }
void copySelection(char * dst, const char * src, uint8_t size)
{