From 37c9e0dbc3415b66de38d650f29117ca453a6ce3 Mon Sep 17 00:00:00 2001 From: tarxvf Date: Sun, 16 Oct 2022 16:52:13 -0400 Subject: [PATCH] macro menu mode change: catch invalid states --- openrtx/src/ui/ui.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openrtx/src/ui/ui.c b/openrtx/src/ui/ui.c index bef0f4c0..d2a81f11 100644 --- a/openrtx/src/ui/ui.c +++ b/openrtx/src/ui/ui.c @@ -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: