Usability improvements

Remove DMR from macro menu until we actually support it.
Remove print of M17 source callsign
Bank and channel visualization is more compact to make room for
additional data on a single screen.
Refactor mode screen to fit all data into a single screen.
This commit is contained in:
Niccolò Izzo 2022-09-15 15:59:52 +02:00 committed by Silvano Seva
parent 5093545c58
commit b3a861a47c
1 changed files with 12 additions and 19 deletions

View File

@ -1043,6 +1043,18 @@ void ui_updateFSM(bool *sync_rtx)
// Open Menu
state.ui_screen = MENU_TOP;
}
else if(msg.keys & KEY_ESC)
{
// Save VFO channel
state.vfo_channel = state.channel;
int result = _ui_fsm_loadChannel(state.channel_index, sync_rtx);
// Read successful and channel is valid
if(result != -1)
{
// Switch to MEM screen
state.ui_screen = MAIN_MEM;
}
}
else if(msg.keys & KEY_HASH)
{
// Enable dst ID input
@ -1072,25 +1084,6 @@ void ui_updateFSM(bool *sync_rtx)
*sync_rtx = true;
}
}
else if(msg.keys & KEY_ENTER)
{
// Save current main state
ui_state.last_main_state = state.ui_screen;
// Open Menu
state.ui_screen = MENU_TOP;
}
else if(msg.keys & KEY_ESC)
{
// Save VFO channel
state.vfo_channel = state.channel;
int result = _ui_fsm_loadChannel(state.channel_index, sync_rtx);
// Read successful and channel is valid
if(result != -1)
{
// Switch to MEM screen
state.ui_screen = MAIN_MEM;
}
}
else if(input_isNumberPressed(msg))
{
// Open Frequency input screen