From 5da6183a697e4f22920ba688114409e61edd1864 Mon Sep 17 00:00:00 2001 From: Armel FAUVEAU Date: Tue, 30 Jan 2024 19:30:16 +0100 Subject: [PATCH] Enter DTMF on Main Only --- ui/main.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/ui/main.c b/ui/main.c index 0c14654..36b65b0 100644 --- a/ui/main.c +++ b/ui/main.c @@ -42,6 +42,7 @@ center_line_t center_line = CENTER_LINE_NONE; #ifdef ENABLE_FEAT_F4HWN static bool RXCounter; static int8_t RXLine; + bool isMainOnlyInputDTMF = false; #endif const int8_t dBmCorrTable[7] = { @@ -502,7 +503,12 @@ void UI_DisplayMain(void) } } #endif + +#ifdef ENABLE_FEAT_F4HWN + if (activeTxVFO != vfo_num || ((gEeprom.DUAL_WATCH != DUAL_WATCH_OFF) + (gEeprom.CROSS_BAND_RX_TX != CROSS_BAND_OFF) * 2 == 0)) +#else if (activeTxVFO != vfo_num) // this is not active TX VFO +#endif { #ifdef ENABLE_SCAN_RANGES if(gScanRangeStart) { @@ -555,7 +561,20 @@ void UI_DisplayMain(void) pPrintStr = String; } +#ifdef ENABLE_FEAT_F4HWN + if ((gEeprom.DUAL_WATCH != DUAL_WATCH_OFF) + (gEeprom.CROSS_BAND_RX_TX != CROSS_BAND_OFF) * 2 == 0) + { + UI_PrintString(pPrintStr, 2, 0, 5, 8); + isMainOnlyInputDTMF = true; + } + else + { + UI_PrintString(pPrintStr, 2, 0, 0 + (vfo_num * 3), 8); + isMainOnlyInputDTMF = false; + } +#else UI_PrintString(pPrintStr, 2, 0, 0 + (vfo_num * 3), 8); +#endif center_line = CENTER_LINE_IN_USE; continue;