macro menu mode change: catch invalid states

This commit is contained in:
tarxvf 2022-10-16 16:52:13 -04:00 committed by silseva
parent ea9f99524b
commit 37c9e0dbc3
1 changed files with 2 additions and 0 deletions

View File

@ -790,6 +790,8 @@ void _ui_fsm_menuMacro(kbd_msg_t msg, bool *sync_rtx)
state.channel.mode = OPMODE_M17;
else if(state.channel.mode == OPMODE_M17)
state.channel.mode = OPMODE_FM;
else //catch any invalid states so they don't get locked out
state.channel.mode = OPMODE_FM;
*sync_rtx = true;
break;
case 6: