Fix segfault on Sky9X (#6930)

Add calibration button to hardware screen
This commit is contained in:
3djc
2019-10-11 08:11:43 +02:00
committed by Bertrand Songis
parent 135133423a
commit aa781337b2
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ void menuRadioCalibration(event_t event);
static const MenuHandlerFunc menuTabGeneral[MENU_RADIO_PAGES_COUNT] = {
menuRadioSetup,
CASE_SDCARD(menuRadioSdManager)
#if defined(LUA) || defined(PXX2)
#if defined(LUA) || defined(PXX2) || defined(MULTIMODULE)
menuRadioTools,
#endif
menuRadioSpecialFunctions,
@@ -35,7 +35,7 @@ enum {
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;
@@ -52,6 +52,10 @@ void menuRadioHardware(event_t event)
case ITEM_RADIO_HARDWARE_STICKS_GAINS_LABELS:
lcdDrawTextAlignedLeft(y, "Sticks");
lcdDrawText(LCD_W, y, BUTTON(TR_CALIBRATION), attr| RIGHT);
if (attr && event == EVT_KEY_FIRST(KEY_ENTER)) {
pushMenu(menuRadioCalibration);
}
break;
case ITEM_RADIO_HARDWARE_STICK_LV_GAIN: