UI: exit from macro menu on PTT press

This commit is contained in:
Silvano Seva 2024-07-12 08:13:01 +02:00
parent e2c70bd4fd
commit c60445d5be
1 changed files with 7 additions and 2 deletions

View File

@ -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;
}