From 1c9a0f55a32705102c5591ea5384b35be788de33 Mon Sep 17 00:00:00 2001 From: wu58430 Date: Mon, 4 Dec 2023 20:39:53 +0800 Subject: [PATCH] MDC RX --- .idea/workspace.xml | 22 +++++++++++++++++----- ui/menu.c | 3 +-- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index d8ad38d..c944f01 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -20,9 +20,7 @@ - - - + diff --git a/ui/menu.c b/ui/menu.c index 34f578b..751a3b6 100644 --- a/ui/menu.c +++ b/ui/menu.c @@ -685,8 +685,7 @@ void UI_DisplayMenu(void) { case MENU_MDC_ID: { - gIsInSubMenu=true; - if (edit_index<0) { // show the channel name + if (!gIsInSubMenu||edit_index<0) { // show the channel name sprintf(String, "%04X", gEeprom.MDC1200_ID); // %04X确保输出是4个字符长度的十六进制数 UI_PrintStringSmall(String, menu_item_x1, menu_item_x2, 3);//4 } else { // show the channel name being edited