mirror of
https://github.com/opentx/opentx.git
synced 2025-07-24 00:35:18 +03:00
Fixes #1478
This commit is contained in:
parent
0b7bbbbdbd
commit
00f8b97ee4
1 changed files with 18 additions and 5 deletions
|
@ -1903,11 +1903,24 @@ void menuModelFlightModesAll(uint8_t event)
|
||||||
// last line available - add the "check trims" line
|
// last line available - add the "check trims" line
|
||||||
lcd_putsLeft((LCD_LINES-1)*FH+1, STR_CHECKTRIMS);
|
lcd_putsLeft((LCD_LINES-1)*FH+1, STR_CHECKTRIMS);
|
||||||
putsFlightMode(OFS_CHECKTRIMS, (LCD_LINES-1)*FH+1, mixerCurrentFlightMode+1);
|
putsFlightMode(OFS_CHECKTRIMS, (LCD_LINES-1)*FH+1, mixerCurrentFlightMode+1);
|
||||||
if (sub==MAX_FLIGHT_MODES && !trimsCheckTimer) {
|
if (sub==MAX_FLIGHT_MODES) {
|
||||||
lcd_status_line();
|
if (!trimsCheckTimer) {
|
||||||
if (event == EVT_KEY_FIRST(KEY_ENTER)) {
|
if (event == EVT_KEY_FIRST(KEY_ENTER)) {
|
||||||
s_editMode = 0;
|
trimsCheckTimer = 200; // 2 seconds trims cancelled
|
||||||
trimsCheckTimer = 200; // 2 seconds
|
s_editMode = 1;
|
||||||
|
killEvents(event);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
lcd_status_line();
|
||||||
|
s_editMode = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
if (event == EVT_KEY_FIRST(KEY_EXIT)) {
|
||||||
|
trimsCheckTimer = 0;
|
||||||
|
s_editMode = 0;
|
||||||
|
killEvents(event);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue