Commit 1bf2f517 authored by hu's avatar hu

增加背光设置等级存储功能

parent 9937a952
......@@ -1097,6 +1097,7 @@ void Key_Operation_Enter(Key_Event_en_t enKeyEvent)
/*背光调节*/
else if ((bCurMenuIDX == _MN_DSP_LEVEL3_7_MENU_1) || (bCurMenuIDX == _MN_DSP_LEVEL3_7_MENU_2))
{
MenuFlag.Menu_Return = 1u;
NextMenu(MenuOptTab[bCurMenuIDX].VK_IDX_ENTER);
}
/*轮胎匹配界面*/
......@@ -1250,7 +1251,7 @@ void Key_Operation_Return(Key_Event_en_t enKeyEvent)
{
if (
(bCurMenuIDX == _MN_DSP_LEVEL3_4_MENU_3) || /*语言设定*/
(bCurMenuIDX == _MN_DSP_LEVEL3_7_MENU_1) || /*亮度调节*/
(bCurMenuIDX == _MN_DSP_LEVEL3_7_MENU_1) || (bCurMenuIDX == _MN_DSP_LEVEL3_7_MENU_2) || /*亮度调节*/
((bCurMenuIDX >= _MN_DSP_LEVEL3_4_MENU_41) && (bCurMenuIDX <= _MN_DSP_LEVEL3_4_MENU_47)) /*省油设定子菜单*/
)
{
......
......@@ -1565,24 +1565,50 @@ void Level3_4Menu_5Exit(void)
/*----三级菜单----TPMS轮胎设定----系列子菜单*/
/*亮度调节设定*/
void Level3_4Menu_7Enter_1(void)
{}
{
}
void Level3_4Menu_7Do_1(void)
{
GUI_OftenShow_Display();
GUI_BG_User_Light1_Display(GUI_DISP_MODE_NORMAL);
}
void Level3_4Menu_7Exit_1(void)
{}
{
if (MenuFlag.Menu_Return == 1u)
{
MenuFlag.Menu_Return = 0u;
K_Line_Set.User_Light1 = User_set_Num.User_Light1;
User_App.User_Light1 = User_set_Num.User_Light1;
Common_Set_DTCstatusCHGFFK_Flag(1);
}
else
{
User_set_Num.User_Light1 = User_App.User_Light1;
}
}
void Level3_4Menu_7Enter_2(void)
{}
{
}
void Level3_4Menu_7Do_2(void)
{
GUI_OftenShow_Display();
GUI_BG_User_Light2_Display(GUI_DISP_MODE_NORMAL);
}
void Level3_4Menu_7Exit_2(void)
{}
{
if (MenuFlag.Menu_Return == 1u)
{
MenuFlag.Menu_Return = 0u;
K_Line_Set.User_Light2 = User_set_Num.User_Light2;
User_App.User_Light2 = User_set_Num.User_Light2;
Common_Set_DTCstatusCHGFFK_Flag(1);
}
else
{
User_set_Num.User_Light2 = User_App.User_Light2;
}
}
/*----三级菜单----系统演示----系列子菜单*/
/*LDWS 警报演示*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment