Add diagnostic screens to colorlcd radios (#7140)

Add key diags screen to colorlcd radios
This commit is contained in:
3djc
2019-12-03 16:34:58 +01:00
committed by Bertrand Songis
parent 177787da18
commit 6325ba19cd
15 changed files with 168 additions and 15 deletions
+14
View File
@@ -72,6 +72,7 @@ enum MenuRadioHardwareItems {
#endif
ITEM_RADIO_HARDWARE_JITTER_FILTER,
ITEM_RADIO_HARDWARE_DEBUG,
ITEM_RADIO_HARDWARE_MAX
};
@@ -136,6 +137,7 @@ bool menuRadioHardware(event_t event)
0, /* aux serial mode */
0, /* ADC filter */
1, /* Debug */
});
if (menuEvent) {
@@ -348,6 +350,18 @@ bool menuRadioHardware(event_t event)
g_eeGeneral.jitterFilter = 1 - editCheckBox(b, HW_SETTINGS_COLUMN+50, y, attr, event);
break;
}
case ITEM_RADIO_HARDWARE_DEBUG:
lcdDrawText(MENUS_MARGIN_LEFT, y, STR_DEBUG);
lcdDrawText(HW_SETTINGS_COLUMN + 50, y, STR_ANALOGS_BTN, menuHorizontalPosition == 0 ? attr : 0);
lcdDrawText(lcdNextPos + 10, y, STR_KEYS_BTN, menuHorizontalPosition == 1 ? attr : 0);
if (attr && event == EVT_KEY_BREAK(KEY_ENTER)) {
if (menuHorizontalPosition == 0)
pushMenu(menuRadioDiagAnalogs);
else
pushMenu(menuRadioDiagKeys);
}
break;
}
}