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

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

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