mirror of
https://github.com/silenty4ng/uv-k5-firmware-chinese-lts
synced 2025-01-15 14:54:40 +00:00
MDC UI
This commit is contained in:
parent
622b10bdcc
commit
6c705807a6
1 changed files with 2 additions and 2 deletions
|
@ -686,7 +686,7 @@ void UI_DisplayMenu(void) {
|
||||||
case MENU_MDC_ID:
|
case MENU_MDC_ID:
|
||||||
{
|
{
|
||||||
// gIsInSubMenu
|
// gIsInSubMenu
|
||||||
if (!gIsInSubMenu||edit_index<0) { // show the channel name
|
if (!gIsInSubMenu||(edit_index<0&&gIsInSubMenu)) { // show the channel name
|
||||||
// sprintf(edit, "%04lX", gEeprom.MDC1200_ID); // %04X确保输出是4个字符长度的十六进制数
|
// sprintf(edit, "%04lX", gEeprom.MDC1200_ID); // %04X确保输出是4个字符长度的十六进制数
|
||||||
sprintf(String, "%04X", gEeprom.MDC1200_ID); // %04X确保输出是4个字符长度的十六进制数
|
sprintf(String, "%04X", gEeprom.MDC1200_ID); // %04X确保输出是4个字符长度的十六进制数
|
||||||
|
|
||||||
|
@ -697,7 +697,7 @@ void UI_DisplayMenu(void) {
|
||||||
|
|
||||||
|
|
||||||
UI_PrintStringSmall(String, menu_item_x1, menu_item_x2, 3);//4
|
UI_PrintStringSmall(String, menu_item_x1, menu_item_x2, 3);//4
|
||||||
} else { // show the channel name being edited
|
} else 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) - (32)) + 1) / 2 + (8 * edit_index)+3, 0, 4); // show the cursor
|
UI_PrintStringSmall("^", menu_item_x1+(((menu_item_x2 - menu_item_x1) - (32)) + 1) / 2 + (8 * edit_index)+3, 0, 4); // show the cursor
|
||||||
|
|
Loading…
Reference in a new issue