mirror of
https://github.com/opentx/opentx.git
synced 2025-07-24 00:35:18 +03:00
Stop panel on exit
This commit is contained in:
parent
327f53efa4
commit
09bf8ecfa9
1 changed files with 5 additions and 1 deletions
|
@ -35,6 +35,10 @@ bool menuRadioDiagAnalogs(event_t event)
|
||||||
if (event == EVT_ENTRY || event == EVT_ENTRY_UP) {
|
if (event == EVT_ENTRY || event == EVT_ENTRY_UP) {
|
||||||
touchPanelInit();
|
touchPanelInit();
|
||||||
}
|
}
|
||||||
|
else if (menuEvent) {
|
||||||
|
touchPanelDeInit();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
for (uint8_t i = 0; i < NUM_ANALOGS; i++) {
|
for (uint8_t i = 0; i < NUM_ANALOGS; i++) {
|
||||||
|
@ -62,7 +66,7 @@ bool menuRadioDiagAnalogs(event_t event)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(HARDWARE_TOUCH)
|
#if defined(HARDWARE_TOUCH)
|
||||||
if (touchGT911Flag) {
|
if (HAS_TOUCH_PANEL()) {
|
||||||
lcdDrawText(MENUS_MARGIN_LEFT, MENU_CONTENT_TOP + 7 * FH, "Touch panel:");
|
lcdDrawText(MENUS_MARGIN_LEFT, MENU_CONTENT_TOP + 7 * FH, "Touch panel:");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue