Start touch test screen
This commit is contained in:
@@ -131,6 +131,12 @@ void onHardwareAntennaSwitchConfirm(const char * result)
|
|||||||
#define SPORT_POWER_ROWS
|
#define SPORT_POWER_ROWS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(HARDWARE_TOUCH)
|
||||||
|
#define DEBUG_ROW 2
|
||||||
|
#else
|
||||||
|
#define DEBUG_ROW 1
|
||||||
|
#endif
|
||||||
|
|
||||||
bool menuRadioHardware(event_t event)
|
bool menuRadioHardware(event_t event)
|
||||||
{
|
{
|
||||||
MENU(STR_HARDWARE, RADIO_ICONS, menuTabGeneral, MENU_RADIO_HARDWARE, ITEM_RADIO_HARDWARE_MAX, {
|
MENU(STR_HARDWARE, RADIO_ICONS, menuTabGeneral, MENU_RADIO_HARDWARE, ITEM_RADIO_HARDWARE_MAX, {
|
||||||
@@ -162,7 +168,7 @@ bool menuRadioHardware(event_t event)
|
|||||||
0, /* ADC filter */
|
0, /* ADC filter */
|
||||||
READONLY_ROW /* RAS */,
|
READONLY_ROW /* RAS */,
|
||||||
SPORT_POWER_ROWS
|
SPORT_POWER_ROWS
|
||||||
1, /* Debug */
|
DEBUG_ROW, /* Debug */
|
||||||
});
|
});
|
||||||
|
|
||||||
if (menuEvent) {
|
if (menuEvent) {
|
||||||
@@ -411,6 +417,9 @@ bool menuRadioHardware(event_t event)
|
|||||||
lcdDrawText(MENUS_MARGIN_LEFT, y, STR_DEBUG);
|
lcdDrawText(MENUS_MARGIN_LEFT, y, STR_DEBUG);
|
||||||
lcdDrawText(HW_SETTINGS_COLUMN2, y, STR_ANALOGS_BTN, menuHorizontalPosition == 0 ? attr : 0);
|
lcdDrawText(HW_SETTINGS_COLUMN2, y, STR_ANALOGS_BTN, menuHorizontalPosition == 0 ? attr : 0);
|
||||||
lcdDrawText(lcdNextPos + 10, y, STR_KEYS_BTN, menuHorizontalPosition == 1 ? attr : 0);
|
lcdDrawText(lcdNextPos + 10, y, STR_KEYS_BTN, menuHorizontalPosition == 1 ? attr : 0);
|
||||||
|
#if defined(HARDWARE_TOUCH)
|
||||||
|
lcdDrawText(lcdNextPos + 10, y, STR_KEYS_BTN, menuHorizontalPosition == 2 ? attr : 0);
|
||||||
|
#endif
|
||||||
if (attr && event == EVT_KEY_BREAK(KEY_ENTER)) {
|
if (attr && event == EVT_KEY_BREAK(KEY_ENTER)) {
|
||||||
if (menuHorizontalPosition == 0)
|
if (menuHorizontalPosition == 0)
|
||||||
pushMenu(menuRadioDiagAnalogs);
|
pushMenu(menuRadioDiagAnalogs);
|
||||||
|
|||||||
@@ -315,6 +315,7 @@ const char STR_MONITOR_SCREENS[] = TR_MONITOR_SCREENS;
|
|||||||
const char STR_RESET_BTN[] = TR_RESET_BTN;
|
const char STR_RESET_BTN[] = TR_RESET_BTN;
|
||||||
const char STR_DEBUG[] = TR_DEBUG;
|
const char STR_DEBUG[] = TR_DEBUG;
|
||||||
const char STR_KEYS_BTN[] = TR_KEYS_BTN;
|
const char STR_KEYS_BTN[] = TR_KEYS_BTN;
|
||||||
|
const char STR_TOUCH_BTN[] = TR_TOUCH_BTN;
|
||||||
const char STR_ANALOGS_BTN[] = TR_ANALOGS_BTN;
|
const char STR_ANALOGS_BTN[] = TR_ANALOGS_BTN;
|
||||||
const char STR_CALIBRATION[] = TR_CALIBRATION;
|
const char STR_CALIBRATION[] = TR_CALIBRATION;
|
||||||
const char STR_NO_TOOLS[] = TR_NO_TOOLS;
|
const char STR_NO_TOOLS[] = TR_NO_TOOLS;
|
||||||
|
|||||||
@@ -493,6 +493,7 @@ extern const char STR_MONITOR_SCREENS[];
|
|||||||
extern const char STR_RESET_BTN[];
|
extern const char STR_RESET_BTN[];
|
||||||
extern const char STR_DEBUG[];
|
extern const char STR_DEBUG[];
|
||||||
extern const char STR_KEYS_BTN[];
|
extern const char STR_KEYS_BTN[];
|
||||||
|
extern const char STR_TOUCH_BTN[];
|
||||||
extern const char STR_ANALOGS_BTN[];
|
extern const char STR_ANALOGS_BTN[];
|
||||||
extern const char STR_CALIBRATION[];
|
extern const char STR_CALIBRATION[];
|
||||||
extern const char STR_NO_TOOLS[];
|
extern const char STR_NO_TOOLS[];
|
||||||
|
|||||||
@@ -912,6 +912,7 @@
|
|||||||
#define TR_RESET_BTN BUTTON("Reset")
|
#define TR_RESET_BTN BUTTON("Reset")
|
||||||
#define TR_DEBUG "Debug"
|
#define TR_DEBUG "Debug"
|
||||||
#define TR_KEYS_BTN BUTTON(TR("SW","Přepínače"))
|
#define TR_KEYS_BTN BUTTON(TR("SW","Přepínače"))
|
||||||
|
#define TR_TOUCH_BTN BUTTON("Touch")
|
||||||
#define TR_ANALOGS_BTN BUTTON(TR("Analog","Analogy"))
|
#define TR_ANALOGS_BTN BUTTON(TR("Analog","Analogy"))
|
||||||
#define TR_CALIBRATION "Kalibrace"
|
#define TR_CALIBRATION "Kalibrace"
|
||||||
#define TR_SET BUTTON("Nast")
|
#define TR_SET BUTTON("Nast")
|
||||||
|
|||||||
@@ -914,6 +914,7 @@
|
|||||||
#define TR_RESET_BTN BUTTON("Reset")
|
#define TR_RESET_BTN BUTTON("Reset")
|
||||||
#define TR_DEBUG "Testen"
|
#define TR_DEBUG "Testen"
|
||||||
#define TR_KEYS_BTN BUTTON(TR("SW","Switches"))
|
#define TR_KEYS_BTN BUTTON(TR("SW","Switches"))
|
||||||
|
#define TR_TOUCH_BTN BUTTON("Touch")
|
||||||
#define TR_ANALOGS_BTN BUTTON(TR("Analog","Analogs"))
|
#define TR_ANALOGS_BTN BUTTON(TR("Analog","Analogs"))
|
||||||
#define TR_CALIBRATION "Kalibrieren"
|
#define TR_CALIBRATION "Kalibrieren"
|
||||||
#define TR_SET BUTTON("Set")
|
#define TR_SET BUTTON("Set")
|
||||||
|
|||||||
@@ -913,6 +913,7 @@
|
|||||||
#define TR_RESET_BTN BUTTON("Reset")
|
#define TR_RESET_BTN BUTTON("Reset")
|
||||||
#define TR_DEBUG "Debug"
|
#define TR_DEBUG "Debug"
|
||||||
#define TR_KEYS_BTN BUTTON(TR("Keys", "Switches"))
|
#define TR_KEYS_BTN BUTTON(TR("Keys", "Switches"))
|
||||||
|
#define TR_TOUCH_BTN BUTTON("Touch")
|
||||||
#define TR_ANALOGS_BTN BUTTON(TR("Anas", "Analogs"))
|
#define TR_ANALOGS_BTN BUTTON(TR("Anas", "Analogs"))
|
||||||
#define TR_CALIBRATION "Calibration"
|
#define TR_CALIBRATION "Calibration"
|
||||||
#define TR_SET BUTTON("Set")
|
#define TR_SET BUTTON("Set")
|
||||||
|
|||||||
@@ -933,6 +933,7 @@
|
|||||||
#define TR_RESET_BTN "[Reset]"
|
#define TR_RESET_BTN "[Reset]"
|
||||||
#define TR_DEBUG "Debug"
|
#define TR_DEBUG "Debug"
|
||||||
#define TR_KEYS_BTN BUTTON(TR("SW","Switches"))
|
#define TR_KEYS_BTN BUTTON(TR("SW","Switches"))
|
||||||
|
#define TR_TOUCH_BTN BUTTON("Touch")
|
||||||
#define TR_ANALOGS_BTN BUTTON(TR("Analog","Analogs"))
|
#define TR_ANALOGS_BTN BUTTON(TR("Analog","Analogs"))
|
||||||
#define TR_CALIBRATION "Calibracion"
|
#define TR_CALIBRATION "Calibracion"
|
||||||
#define TR_SET "[Ajuste]"
|
#define TR_SET "[Ajuste]"
|
||||||
|
|||||||
@@ -931,6 +931,7 @@
|
|||||||
#define TR_RESET_BTN "[Reset]"
|
#define TR_RESET_BTN "[Reset]"
|
||||||
#define TR_DEBUG "Debug"
|
#define TR_DEBUG "Debug"
|
||||||
#define TR_KEYS_BTN BUTTON(TR("SW","Switches"))
|
#define TR_KEYS_BTN BUTTON(TR("SW","Switches"))
|
||||||
|
#define TR_TOUCH_BTN BUTTON("Touch")
|
||||||
#define TR_ANALOGS_BTN BUTTON(TR("Analog","Analogs"))
|
#define TR_ANALOGS_BTN BUTTON(TR("Analog","Analogs"))
|
||||||
#define TR_CALIBRATION "Calibration"
|
#define TR_CALIBRATION "Calibration"
|
||||||
#define TR_SET "[Set]"
|
#define TR_SET "[Set]"
|
||||||
|
|||||||
@@ -933,6 +933,7 @@
|
|||||||
#define TR_RESET_BTN BUTTON("RAZ")
|
#define TR_RESET_BTN BUTTON("RAZ")
|
||||||
#define TR_DEBUG "Debug"
|
#define TR_DEBUG "Debug"
|
||||||
#define TR_KEYS_BTN BUTTON(TR("Btns","Inters"))
|
#define TR_KEYS_BTN BUTTON(TR("Btns","Inters"))
|
||||||
|
#define TR_TOUCH_BTN BUTTON("Touch")
|
||||||
#define TR_ANALOGS_BTN BUTTON(TR("Anas", "Analogs"))
|
#define TR_ANALOGS_BTN BUTTON(TR("Anas", "Analogs"))
|
||||||
#define TR_CALIBRATION "Calibration"
|
#define TR_CALIBRATION "Calibration"
|
||||||
#define TR_SET BUTTON("Déf")
|
#define TR_SET BUTTON("Déf")
|
||||||
|
|||||||
@@ -933,6 +933,7 @@
|
|||||||
#define TR_RESET_BTN "[Reset]"
|
#define TR_RESET_BTN "[Reset]"
|
||||||
#define TR_DEBUG "Debug"
|
#define TR_DEBUG "Debug"
|
||||||
#define TR_KEYS_BTN BUTTON(TR("SW","Interruttori"))
|
#define TR_KEYS_BTN BUTTON(TR("SW","Interruttori"))
|
||||||
|
#define TR_TOUCH_BTN BUTTON("Touch")
|
||||||
#define TR_ANALOGS_BTN BUTTON(TR("Analogico","Analogici"))
|
#define TR_ANALOGS_BTN BUTTON(TR("Analogico","Analogici"))
|
||||||
#define TR_CALIBRATION TR("Calibraz.", "Calibrazione")
|
#define TR_CALIBRATION TR("Calibraz.", "Calibrazione")
|
||||||
#define TR_SET "[Set]"
|
#define TR_SET "[Set]"
|
||||||
|
|||||||
@@ -919,6 +919,7 @@
|
|||||||
#define TR_RESET_BTN "[Reset]"
|
#define TR_RESET_BTN "[Reset]"
|
||||||
#define TR_DEBUG "Debug"
|
#define TR_DEBUG "Debug"
|
||||||
#define TR_KEYS_BTN BUTTON(TR("SW","Switches"))
|
#define TR_KEYS_BTN BUTTON(TR("SW","Switches"))
|
||||||
|
#define TR_TOUCH_BTN BUTTON("Touch")
|
||||||
#define TR_ANALOGS_BTN BUTTON(TR("Analog","Analogs"))
|
#define TR_ANALOGS_BTN BUTTON(TR("Analog","Analogs"))
|
||||||
#define TR_CALIBRATION "Calibration"
|
#define TR_CALIBRATION "Calibration"
|
||||||
#define TR_SET "[Set]"
|
#define TR_SET "[Set]"
|
||||||
|
|||||||
@@ -932,6 +932,7 @@
|
|||||||
#define TR_RESET_BTN "[Reset]"
|
#define TR_RESET_BTN "[Reset]"
|
||||||
#define TR_DEBUG "Debug"
|
#define TR_DEBUG "Debug"
|
||||||
#define TR_KEYS_BTN BUTTON(TR("SW","Switches"))
|
#define TR_KEYS_BTN BUTTON(TR("SW","Switches"))
|
||||||
|
#define TR_TOUCH_BTN BUTTON("Touch")
|
||||||
#define TR_ANALOGS_BTN BUTTON(TR("Analog","Analogs"))
|
#define TR_ANALOGS_BTN BUTTON(TR("Analog","Analogs"))
|
||||||
#define TR_CALIBRATION "Calibration"
|
#define TR_CALIBRATION "Calibration"
|
||||||
#define TR_SET "[Set]"
|
#define TR_SET "[Set]"
|
||||||
|
|||||||
@@ -922,6 +922,7 @@
|
|||||||
#define TR_RESET_BTN "[Reset]"
|
#define TR_RESET_BTN "[Reset]"
|
||||||
#define TR_DEBUG "Debug"
|
#define TR_DEBUG "Debug"
|
||||||
#define TR_KEYS_BTN BUTTON(TR("SW","Switches"))
|
#define TR_KEYS_BTN BUTTON(TR("SW","Switches"))
|
||||||
|
#define TR_TOUCH_BTN BUTTON("Touch")
|
||||||
#define TR_ANALOGS_BTN BUTTON(TR("Analog","Analogs"))
|
#define TR_ANALOGS_BTN BUTTON(TR("Analog","Analogs"))
|
||||||
#define TR_CALIBRATION "Calibration"
|
#define TR_CALIBRATION "Calibration"
|
||||||
#define TR_SET "[Set]"
|
#define TR_SET "[Set]"
|
||||||
|
|||||||
@@ -932,6 +932,7 @@
|
|||||||
#define TR_RESET_BTN "[Nollställ]"
|
#define TR_RESET_BTN "[Nollställ]"
|
||||||
#define TR_DEBUG "Debug"
|
#define TR_DEBUG "Debug"
|
||||||
#define TR_KEYS_BTN BUTTON(TR("SW","Switches"))
|
#define TR_KEYS_BTN BUTTON(TR("SW","Switches"))
|
||||||
|
#define TR_TOUCH_BTN BUTTON("Touch")
|
||||||
#define TR_ANALOGS_BTN BUTTON(TR("Analog","Analogs"))
|
#define TR_ANALOGS_BTN BUTTON(TR("Analog","Analogs"))
|
||||||
#define TR_CALIBRATION "Calibration"
|
#define TR_CALIBRATION "Calibration"
|
||||||
#define TR_SET "[Spara]"
|
#define TR_SET "[Spara]"
|
||||||
|
|||||||
Reference in New Issue
Block a user