Commit 2737a7d4 authored by 梁百峰's avatar 梁百峰

feat:修改菜单中改变亮度占空比范围

parent 9472b775
...@@ -303,29 +303,15 @@ void Menu_Logic_Operation_SET_Backlight(Menu_Key_en_t enKeyType) ...@@ -303,29 +303,15 @@ void Menu_Logic_Operation_SET_Backlight(Menu_Key_en_t enKeyType)
else if (enKeyType == MENU_KEY_RIGHT_SHORT) else if (enKeyType == MENU_KEY_RIGHT_SHORT)
{ {
updataDir = 1; updataDir = 1;
datmax = 500u; datmax = 850u;
datmin = 100u; datmin = 150u;
if((Get_TelltalesLedSts(m_LED_Park_Lamp) == 1) || (Get_Enter_night_mode_sta() == 1)) if((Get_TelltalesLedSts(m_LED_Park_Lamp) == 1) || (Get_Enter_night_mode_sta() == 1))
{ {
if(g_nightLight.Duty == 100u) Menu_u16Data_Updata_Process(updataDir, datmax, datmin, 100u, (uint16_t*)&(g_nightLight.Duty));
{
Menu_u16Data_Updata_Process(updataDir, datmax, datmin, 100u, (uint16_t*)&(g_nightLight.Duty));
}
else
{
Menu_u16Data_Updata_Process(updataDir, datmax, datmin, 50u, (uint16_t*)&(g_nightLight.Duty));
}
} }
else else
{ {
if(g_Light.Duty == 100u) Menu_u16Data_Updata_Process(updataDir, datmax, datmin, 100u, (uint16_t*)&(g_Light.Duty));
{
Menu_u16Data_Updata_Process(updataDir, datmax, datmin, 100u, (uint16_t*)&(g_Light.Duty));
}
else
{
Menu_u16Data_Updata_Process(updataDir, datmax, datmin, 50u, (uint16_t*)&(g_Light.Duty));
}
} }
} }
......
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