Fixes #1478
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user