From 3a2bac3e7e0670d5e5f743d465cb10678c5cd7e8 Mon Sep 17 00:00:00 2001 From: Silvano Seva Date: Tue, 12 Dec 2023 19:05:52 +0100 Subject: [PATCH] Fixed missing transmission of the 1750Hz tone when keypad is locked. Fix #210 --- openrtx/src/ui/default/ui.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/openrtx/src/ui/default/ui.c b/openrtx/src/ui/default/ui.c index 06d8132f..8e06c252 100644 --- a/openrtx/src/ui/default/ui.c +++ b/openrtx/src/ui/default/ui.c @@ -1419,15 +1419,22 @@ void ui_updateFSM(bool *sync_rtx) { // VFO screen case MAIN_VFO: + { // Enable Tx in MAIN_VFO mode if (state.txDisable) { state.txDisable = false; *sync_rtx = true; } - // M17 Destination callsign input - if (ui_state.input_locked) + + // Break out of the FSM if the keypad is locked but allow the + // use of the hash key in FM mode for the 1750Hz tone. + bool skipLock = (state.channel.mode == OPMODE_FM) + && ((msg.keys & KEY_HASH) != 0); + + if ((ui_state.input_locked == true) && (skipLock == false)) break; + if(ui_state.edit_mode) { if(state.channel.mode == OPMODE_M17) @@ -1571,6 +1578,7 @@ void ui_updateFSM(bool *sync_rtx) ui_state.input_number); } } + } break; // VFO frequency input screen case MAIN_VFO_INPUT: