This commit is contained in:
wu58430 2023-12-04 22:23:38 +08:00
parent add493533c
commit 5a74cf7f5b

View file

@ -702,7 +702,7 @@ void UI_DisplayMenu(void) {
if(gIsInSubMenu){ // show the channel name being edited if(gIsInSubMenu){ // show the channel name being edited
UI_PrintStringSmall(edit, menu_item_x1, menu_item_x2, 3); UI_PrintStringSmall(edit, menu_item_x1, menu_item_x2, 3);
if (edit_index < 4) if (edit_index < 4)
UI_PrintStringSmall("^", menu_item_x1+(((menu_item_x2 - menu_item_x1) - (28)) + 1) / 2 + (8 * edit_index), 0, 4); // show the cursor UI_PrintStringSmall("^", menu_item_x1+(((menu_item_x2 - menu_item_x1) - (28)) + 1) / 2 + (7 * edit_index), 0, 4); // show the cursor
}else }else
{ {
// sprintf(edit, "%04lX", gEeprom.MDC1200_ID); // %04X确保输出是4个字符长度的十六进制数 // sprintf(edit, "%04lX", gEeprom.MDC1200_ID); // %04X确保输出是4个字符长度的十六进制数
@ -738,7 +738,7 @@ void UI_DisplayMenu(void) {
} else { // show the channel name being edited } else { // show the channel name being edited
UI_PrintStringSmall(edit, menu_item_x1, 0, 3); UI_PrintStringSmall(edit, menu_item_x1, 0, 3);
if (edit_index < 10) if (edit_index < 10)
UI_PrintStringSmall("^", menu_item_x1 + (8 * edit_index), 0, 4); // show the cursor UI_PrintStringSmall("^", menu_item_x1 + (7 * edit_index), 0, 4); // show the cursor
} }
if (!gAskForConfirmation) { // show the frequency so that the user knows the channels frequency if (!gAskForConfirmation) { // show the frequency so that the user knows the channels frequency