From 1cef3afd943f898183082dfc1d075779081699ff Mon Sep 17 00:00:00 2001 From: wu58430 Date: Mon, 4 Dec 2023 21:21:54 +0800 Subject: [PATCH] MDC RX --- app/menu.c | 2 +- ui/menu.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/menu.c b/app/menu.c index f77f5e4..9a4b84c 100644 --- a/app/menu.c +++ b/app/menu.c @@ -1454,7 +1454,7 @@ static void MENU_Key_MENU(const bool bKeyPressed, const bool bKeyHeld) if (edit_index < 0) { // edit_index = 0; - sprintf(edit, " %04lX", gEeprom.MDC1200_ID); // %04X确保输出是4个字符长度的十六进制数 + // while (edit_index < 4) // edit[edit_index++] = '_'; diff --git a/ui/menu.c b/ui/menu.c index bb01911..0afe320 100644 --- a/ui/menu.c +++ b/ui/menu.c @@ -687,6 +687,7 @@ void UI_DisplayMenu(void) { { // gIsInSubMenu if (!gIsInSubMenu||edit_index<0) { // show the channel name + sprintf(edit, "%04lX", gEeprom.MDC1200_ID); // %04X确保输出是4个字符长度的十六进制数 sprintf(String, "%04X", gEeprom.MDC1200_ID); // %04X确保输出是4个字符长度的十六进制数 UI_PrintStringSmall(String, menu_item_x1, menu_item_x2, 3);//4