UI: Add switch cases default options

replace/42042f87e455fc3116be21528870d433421283f5
Federico Amedeo Izzo 2021-02-16 22:09:28 +01:00
rodzic fed9912c7d
commit 9de0857ff4
1 zmienionych plików z 8 dodań i 1 usunięć

Wyświetl plik

@ -966,6 +966,8 @@ void ui_updateFSM(event_t event, bool *sync_rtx)
state.ui_screen = SETTINGS_GPS;
break;
#endif
default:
state.ui_screen = MENU_SETTINGS;
}
// Reset menu selection
ui_state.menu_selected = 0;
@ -1048,6 +1050,8 @@ void ui_updateFSM(event_t event, bool *sync_rtx)
_ui_changeContrast(-25);
break;
#endif
default:
state.ui_screen = SETTINGS_DISPLAY;
}
}
else if(msg.keys & KEY_RIGHT || (msg.keys & KEY_DOWN && ui_state.edit_mode))
@ -1062,6 +1066,8 @@ void ui_updateFSM(event_t event, bool *sync_rtx)
_ui_changeContrast(+25);
break;
#endif
default:
state.ui_screen = SETTINGS_DISPLAY;
}
}
else if(msg.keys & KEY_UP)
@ -1102,7 +1108,8 @@ void ui_updateFSM(event_t event, bool *sync_rtx)
else if(msg.keys & KEY_RIGHT || msg.keys & KEY_DOWN)
state.settings.utc_timezone += 1;
break;
default:
state.ui_screen = SETTINGS_GPS;
}
}
else if(msg.keys & KEY_UP)