mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-08-05 02:06:31 +03:00
Fixed power save and added display contrast menu
This commit is contained in:
@@ -37,9 +37,7 @@ extern center_line_t center_line;
|
||||
#ifdef ENABLE_AUDIO_BAR
|
||||
void UI_DisplayAudioBar(void);
|
||||
#endif
|
||||
#ifdef ENABLE_RSSI_BAR
|
||||
void UI_UpdateRSSI(const int16_t rssi, const int vfo);
|
||||
#endif
|
||||
void UI_UpdateRSSI(const int16_t rssi, const int vfo);
|
||||
void UI_DisplayMain(void);
|
||||
|
||||
#endif
|
||||
|
@@ -70,6 +70,7 @@ const t_menu_item g_menu_list[] =
|
||||
#endif
|
||||
{"Bak LT", VOICE_ID_INVALID, MENU_ABR }, // was "ABR"
|
||||
{"BLTTRX", VOICE_ID_INVALID, MENU_ABR_ON_TX_RX },
|
||||
{"CTRAST", VOICE_ID_INVALID, MENU_CONTRAST },
|
||||
{"BEEP", VOICE_ID_BEEP_PROMPT, MENU_BEEP },
|
||||
#ifdef ENABLE_VOICE
|
||||
{"VOICE", VOICE_ID_VOICE_PROMPT, MENU_VOICE },
|
||||
@@ -672,6 +673,13 @@ void UI_DisplayMenu(void)
|
||||
strcpy(String, g_sub_menu_rx_tx[g_sub_menu_selection]);
|
||||
break;
|
||||
|
||||
case MENU_CONTRAST:
|
||||
sprintf(String, "%d", g_sub_menu_selection);
|
||||
//g_setting_contrast = g_sub_menu_selection
|
||||
ST7565_SetContrast(g_sub_menu_selection);
|
||||
g_update_display = true;
|
||||
break;
|
||||
|
||||
#ifdef ENABLE_AM_FIX
|
||||
case MENU_AM_FIX:
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user