mirror of
https://github.com/losehu/uv-k5-firmware-custom.git
synced 2025-10-23 05:54:44 +08:00
fix exit bug
This commit is contained in:
@ -779,7 +779,8 @@ cnt_i--;
|
||||
}
|
||||
|
||||
void MAIN_ProcessKeys(KEY_Code_t Key, bool bKeyPressed, bool bKeyHeld) {
|
||||
last_rx_vfo = -1;
|
||||
if (bKeyPressed)
|
||||
last_rx_vfo = -1;
|
||||
#ifdef ENABLE_FMRADIO
|
||||
if (gFmRadioMode && Key != KEY_PTT && Key != KEY_EXIT)
|
||||
{
|
||||
|
22
ui/menu.c
22
ui/menu.c
@ -999,24 +999,26 @@ void UI_DisplayMenu(void) {
|
||||
|
||||
#ifdef ENABLE_PINYIN
|
||||
uint8_t cnt_chn = 0;
|
||||
uint8_t sum_pxl = 0;
|
||||
|
||||
for (int j = 0; j < MAX_EDIT_INDEX; ++j) {
|
||||
if (edit[j] >= 0xb0 && j != MAX_EDIT_INDEX - 1) {
|
||||
if (j < edit_index) {
|
||||
sum_pxl += 13;
|
||||
}
|
||||
edit_chn[j] = 1;
|
||||
j++;
|
||||
edit_chn[j] = 2;
|
||||
cnt_chn++;
|
||||
} else edit_chn[j] = 0;
|
||||
} else {
|
||||
if (j < edit_index) {
|
||||
sum_pxl += 7;
|
||||
}
|
||||
edit_chn[j] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
uint8_t sum_pxl = 0;
|
||||
for (int j = 0; j < edit_index; j++) {
|
||||
if (edit_chn[j] == 1) {
|
||||
sum_pxl += 13;
|
||||
j++;
|
||||
} else
|
||||
sum_pxl += 7;
|
||||
}
|
||||
uint8_t add_point = edit_chn[edit_index] == 1 ? 6 : 3;
|
||||
uint8_t add_point = 3 << edit_chn[edit_index];
|
||||
|
||||
uint8_t pointY = menu_item_x1 - 12 + sum_pxl +
|
||||
(((menu_item_x2 - menu_item_x1 + 12) -
|
||||
|
Reference in New Issue
Block a user