0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-06-19 06:39:49 +03:00

fix contrast bug

This commit is contained in:
OneOfEleven
2023-11-03 23:14:56 +00:00
parent 2c007d7e50
commit 935e552b02
10 changed files with 12 additions and 31 deletions

View File

@ -564,8 +564,8 @@ void MENU_AcceptSetting(void)
#ifdef ENABLE_CONTRAST
case MENU_CONTRAST:
g_setting_contrast = g_sub_menu_selection;
ST7565_SetContrast(g_setting_contrast);
g_eeprom.config.setting.lcd_contrast = g_sub_menu_selection;
ST7565_SetContrast(g_eeprom.config.setting.lcd_contrast);
break;
#endif
@ -1060,11 +1060,11 @@ void MENU_ShowCurrentSetting(void)
g_sub_menu_selection = g_eeprom.config.setting.backlight_on_tx_rx;
break;
#ifdef ENABLE_CONTRAST
#ifdef ENABLE_CONTRAST
case MENU_CONTRAST:
g_sub_menu_selection = g_setting_contrast;
g_sub_menu_selection = g_eeprom.config.setting.lcd_contrast;
break;
#endif
#endif
case MENU_DUAL_WATCH:
// g_sub_menu_selection = g_eeprom.config.setting.dual_watch;