From 9a7035d20dc480294c06ed95b9c5d08e821e00da Mon Sep 17 00:00:00 2001 From: wu58430 Date: Mon, 4 Dec 2023 20:33:11 +0800 Subject: [PATCH] MDC RX --- .idea/workspace.xml | 22 +++++++++++++++++++--- app/menu.c | 2 +- ui/menu.c | 3 ++- 3 files changed, 22 insertions(+), 5 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 5f7fad5..d8ad38d 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -20,7 +20,9 @@ - + + + diff --git a/app/menu.c b/app/menu.c index cf23311..d456a8c 100644 --- a/app/menu.c +++ b/app/menu.c @@ -1667,7 +1667,7 @@ if( gIsInSubMenu && edit_index >= 0){ else if(c>'F')c='0'; else if(c>'9'&&c<'A'){ if(Direction==1)c='A'; - else c='9'; + else c='9'; } edit[edit_index]=c; diff --git a/ui/menu.c b/ui/menu.c index bc35e32..850c802 100644 --- a/ui/menu.c +++ b/ui/menu.c @@ -685,7 +685,8 @@ void UI_DisplayMenu(void) { case MENU_MDC_ID: { - if (!gIsInSubMenu||edit_index<0) { // show the channel name + gIsInSubMenu=true; + if (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