From c60445d5be1874168b806fd2061882ad72c560da Mon Sep 17 00:00:00 2001 From: Silvano Seva Date: Fri, 12 Jul 2024 08:13:01 +0200 Subject: [PATCH] UI: exit from macro menu on PTT press --- openrtx/src/ui/default/ui.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/openrtx/src/ui/default/ui.c b/openrtx/src/ui/default/ui.c index 508abbd2..b6af1c26 100644 --- a/openrtx/src/ui/default/ui.c +++ b/openrtx/src/ui/default/ui.c @@ -1374,6 +1374,13 @@ void ui_updateFSM(bool *sync_rtx) } #endif // PLATFORM_TTWRPLUS + // Unlatch and exit from macro menu on PTT press + if(macro_latched && txOngoing) + { + macro_latched = false; + macro_menu = false; + } + long long now = getTick(); // Process pressed keys if(event.type == EVENT_KBD) @@ -2451,8 +2458,6 @@ void ui_updateFSM(bool *sync_rtx) if (txOngoing || rtx_rxSquelchOpen()) { - if (txOngoing) - macro_latched = 0; _ui_exitStandby(now); return; }