macro menu mode change: catch invalid states
This commit is contained in:
parent
ea9f99524b
commit
37c9e0dbc3
|
|
@ -790,6 +790,8 @@ void _ui_fsm_menuMacro(kbd_msg_t msg, bool *sync_rtx)
|
||||||
state.channel.mode = OPMODE_M17;
|
state.channel.mode = OPMODE_M17;
|
||||||
else if(state.channel.mode == OPMODE_M17)
|
else if(state.channel.mode == OPMODE_M17)
|
||||||
state.channel.mode = OPMODE_FM;
|
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;
|
*sync_rtx = true;
|
||||||
break;
|
break;
|
||||||
case 6:
|
case 6:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue