mirror of
https://github.com/opentx/opentx.git
synced 2025-07-25 17:25:13 +03:00
Inflight parameters modification using Rotary Encoder on v4 (not finished yet).
This commit is contained in:
parent
9997b8c599
commit
33e30b8fef
10 changed files with 92 additions and 36 deletions
|
@ -225,6 +225,17 @@ void menuMainView(uint8_t event)
|
|||
instantTrimSwLock = true;
|
||||
trim2OfsSwLock = true;
|
||||
break;
|
||||
#ifdef NAVIGATION_RE1
|
||||
case EVT_KEY_LONG(BTN_RE1):
|
||||
if (s_inflight_value && !s_warning) {
|
||||
s_warning = s_inflight_label;
|
||||
break;
|
||||
}
|
||||
// no break
|
||||
case EVT_KEY_BREAK(BTN_RE1):
|
||||
s_warning = NULL;
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
|
||||
bool trimSw = isFunctionActive(FUNC_INSTANT_TRIM);
|
||||
|
@ -575,5 +586,11 @@ void menuMainView(uint8_t event)
|
|||
// lcd_outdezNAtt(33+11*FW, FH*6, s_timerVal_10ms[1], LEADING0, 2); // 1/100s
|
||||
}
|
||||
|
||||
#ifdef NAVIGATION_RE1
|
||||
if (s_warning) {
|
||||
displayBox();
|
||||
}
|
||||
#endif
|
||||
|
||||
theFile.DisplayProgressBar(20*FW+1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue