mirror of
https://github.com/EdgeTX/edgetx.git
synced 2025-07-23 16:25:12 +03:00
Fix segfault on Sky9X (#6930)
Add calibration button to hardware screen
This commit is contained in:
parent
135133423a
commit
aa781337b2
2 changed files with 6 additions and 2 deletions
|
@ -78,7 +78,7 @@ void menuRadioCalibration(event_t event);
|
||||||
static const MenuHandlerFunc menuTabGeneral[MENU_RADIO_PAGES_COUNT] = {
|
static const MenuHandlerFunc menuTabGeneral[MENU_RADIO_PAGES_COUNT] = {
|
||||||
menuRadioSetup,
|
menuRadioSetup,
|
||||||
CASE_SDCARD(menuRadioSdManager)
|
CASE_SDCARD(menuRadioSdManager)
|
||||||
#if defined(LUA) || defined(PXX2)
|
#if defined(LUA) || defined(PXX2) || defined(MULTIMODULE)
|
||||||
menuRadioTools,
|
menuRadioTools,
|
||||||
#endif
|
#endif
|
||||||
menuRadioSpecialFunctions,
|
menuRadioSpecialFunctions,
|
||||||
|
|
|
@ -35,7 +35,7 @@ enum {
|
||||||
|
|
||||||
void menuRadioHardware(event_t event)
|
void menuRadioHardware(event_t event)
|
||||||
{
|
{
|
||||||
MENU(STR_HARDWARE, menuTabGeneral, MENU_RADIO_HARDWARE, ITEM_RADIO_HARDWARE_MAX+1, {0, 0, (uint8_t)-1, 0, 0, 0, CASE_BLUETOOTH(0)});
|
MENU(STR_HARDWARE, menuTabGeneral, MENU_RADIO_HARDWARE, ITEM_RADIO_HARDWARE_MAX+1, {0, 0, 0, 0, 0, 0, CASE_BLUETOOTH(0)});
|
||||||
|
|
||||||
uint8_t sub = menuVerticalPosition - 1;
|
uint8_t sub = menuVerticalPosition - 1;
|
||||||
|
|
||||||
|
@ -52,6 +52,10 @@ void menuRadioHardware(event_t event)
|
||||||
|
|
||||||
case ITEM_RADIO_HARDWARE_STICKS_GAINS_LABELS:
|
case ITEM_RADIO_HARDWARE_STICKS_GAINS_LABELS:
|
||||||
lcdDrawTextAlignedLeft(y, "Sticks");
|
lcdDrawTextAlignedLeft(y, "Sticks");
|
||||||
|
lcdDrawText(LCD_W, y, BUTTON(TR_CALIBRATION), attr| RIGHT);
|
||||||
|
if (attr && event == EVT_KEY_FIRST(KEY_ENTER)) {
|
||||||
|
pushMenu(menuRadioCalibration);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ITEM_RADIO_HARDWARE_STICK_LV_GAIN:
|
case ITEM_RADIO_HARDWARE_STICK_LV_GAIN:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue