From e50e8f9c516f81d6e8d468e3c15447b148d64375 Mon Sep 17 00:00:00 2001 From: wu58430 Date: Sun, 17 Dec 2023 15:29:47 +0800 Subject: [PATCH] 110 --- .idea/workspace.xml | 29 +++++++++++++++++------------ functions.c | 3 +++ ui/main.c | 24 +++++++++--------------- version.c | 2 +- 4 files changed, 30 insertions(+), 28 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 4b8785c..b995b71 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -20,7 +20,12 @@ - + + + + + + @@ -587,7 +592,6 @@ - @@ -612,6 +616,7 @@ - \ No newline at end of file diff --git a/functions.c b/functions.c index 4cfe2cf..c9e3573 100644 --- a/functions.c +++ b/functions.c @@ -143,6 +143,9 @@ void FUNCTION_PowerSave() { void FUNCTION_Transmit() { // if DTMF is enabled when TX'ing, it changes the TX audio filtering !! .. 1of11 +#ifdef ENABLE_MDC1200 + BK4819_enable_mdc1200_rx(false); +#endif BK4819_DisableDTMF(); #ifdef ENABLE_DTMF_CALLING diff --git a/ui/main.c b/ui/main.c index 6598fdb..8204bbc 100644 --- a/ui/main.c +++ b/ui/main.c @@ -735,11 +735,9 @@ void UI_DisplayMain(void) { #ifdef ENABLE_MDC1200 if (mdc1200_rx_ready_tick_500ms > 0) { - center_line = CENTER_LINE_MDC1200; -#ifdef ENABLE_MDC1200_CONTACT - uint8_t print_col = 0; char mdc1200_contact[14]; - + center_line = CENTER_LINE_MDC1200; + uint8_t print_col = 0; if (mdc1200_contact_find(mdc1200_unit_id, mdc1200_contact))// { @@ -750,22 +748,18 @@ void UI_DisplayMain(void) { sprintf(String, "ID %04X", mdc1200_unit_id); print_col = 40; } - UI_PrintStringSmallBold(String, print_col, 0, 3); -#elifdef ENABLE_MDC1200_SHOW_OP_ARG - sprintf(String, "MDC1200 %02X %02X %04X", mdc1200_op, mdc1200_arg, mdc1200_unit_id); - UI_PrintStringSmallBold(String, 4, 0, 3); - -#else - sprintf(String, "MDC1200 ID %04X", mdc1200_unit_id); - UI_PrintStringSmallBold(String, 4, 0, 3); - - -#endif +//#ifdef ENABLE_MDC1200_SHOW_OP_ARG +// sprintf(String, "MDC1200 %02X %02X %04X", mdc1200_op, mdc1200_arg, mdc1200_unit_id); +//#else +// sprintf(String, "MDC1200 ID %04X", mdc1200_unit_id); +//#endif + UI_PrintStringSmallBold(String, print_col, 0, 3); } else #endif + #ifdef ENABLE_AUDIO_BAR if (gCurrentFunction == FUNCTION_TRANSMIT) { center_line = CENTER_LINE_AUDIO_BAR; diff --git a/version.c b/version.c index 80106a7..7a97d4f 100644 --- a/version.c +++ b/version.c @@ -4,7 +4,7 @@ #ifdef GIT_HASH #define VER GIT_HASH #else - #define VER "109" + #define VER "110" #endif #ifndef ONE_OF_ELEVEN_VER