4 extern bool OtaIsFullRes
;
6 const char *Display::message_string
[] = {
13 const char *Display::main_menu_strings
[][2] = {
41 #if defined(RADIO_SX128X)
42 const char *rate_string
[] = {
54 #elif defined(RADIO_LR1121)
55 static const char *rate_string
[] = {
76 static const char *rate_string
[] = {
86 static const char *switch_mode
[] = {
91 static const char *switch_mode_full
[] = {
97 static const char *antenna_mode
[] = {
104 static const char *power_string
[] = {
115 static const char *dynamic_string
[] = {
124 static const char *ratio_string
[] = {
137 static const char *ratio_curr_string
[] = {
148 static const char *powersaving_string
[] = {
153 static const char *smartfan_string
[] = {
159 static const char *band_string
[] = {
169 static const char *channel_string
[] = {
180 static const char *vtx_power_string
[] = {
192 static const char *pitmode_string
[] = {
194 "AUX1 !+", "AUX1 !-",
195 "AUX2 !+", "AUX2 !-",
196 "AUX3 !+", "AUX3 !-",
197 "AUX4 !+", "AUX4 !-",
198 "AUX5 !+", "AUX5 !-",
199 "AUX6 !+", "AUX6 !-",
200 "AUX7 !+", "AUX7 !-",
201 "AUX8 !+", "AUX8 !-",
202 "AUX9 !+", "AUX9 !-",
203 "AUX10 !+", "AUX10 !-"
206 int Display::getValueCount(menu_item_t menu
)
211 return ARRAY_SIZE(rate_string
);
215 return ARRAY_SIZE(switch_mode_full
);
217 return ARRAY_SIZE(switch_mode
);
219 return ARRAY_SIZE(antenna_mode
);
220 case STATE_TELEMETRY
:
221 return ARRAY_SIZE(ratio_string
);
222 case STATE_POWERSAVE
:
223 return ARRAY_SIZE(powersaving_string
);
225 return ARRAY_SIZE(smartfan_string
);
228 case STATE_POWER_MAX
:
229 return ARRAY_SIZE(power_string
);
230 case STATE_POWER_DYNAMIC
:
231 return ARRAY_SIZE(dynamic_string
);
234 return ARRAY_SIZE(band_string
);
235 case STATE_VTX_CHANNEL
:
236 return ARRAY_SIZE(channel_string
);
237 case STATE_VTX_POWER
:
238 return ARRAY_SIZE(vtx_power_string
);
239 case STATE_VTX_PITMODE
:
240 return ARRAY_SIZE(pitmode_string
);
246 const char *Display::getValue(menu_item_t menu
, uint8_t value_index
)
251 return rate_string
[value_index
];
255 return switch_mode_full
[value_index
];
257 return switch_mode
[value_index
];
259 return antenna_mode
[value_index
];
260 case STATE_TELEMETRY
:
261 return ratio_string
[value_index
];
262 case STATE_TELEMETRY_CURR
:
263 return ratio_curr_string
[value_index
];
264 case STATE_POWERSAVE
:
265 return powersaving_string
[value_index
];
267 return smartfan_string
[value_index
];
270 case STATE_POWER_MAX
:
271 return power_string
[value_index
];
272 case STATE_POWER_DYNAMIC
:
273 return dynamic_string
[value_index
];
276 return band_string
[value_index
];
277 case STATE_VTX_CHANNEL
:
278 return channel_string
[value_index
];
279 case STATE_VTX_POWER
:
280 return vtx_power_string
[value_index
];
281 case STATE_VTX_PITMODE
:
282 return pitmode_string
[value_index
];