Commit 6b2142f8 authored by 李俭双's avatar 李俭双

🐞 fix:增加背光自检时不收位置灯信号控制

parent 108cb1d1
...@@ -48,9 +48,16 @@ void BackLight_Process(void) ...@@ -48,9 +48,16 @@ void BackLight_Process(void)
// } // }
//} //}
//if ( LED_Turnon == 5 ) //if ( LED_Turnon == 5 )
if (Line_In_Get_Status(LINE_IN_Little_Lamp)) if (Common_GetIgnOnTime() >= 3000)
{ {
TimerM_PWM_set_duty(TIMERM_COUNTER1, TIMERM_CHB, BACK_LIGHT_NIGHT); if (Line_In_Get_Status(LINE_IN_Little_Lamp))
{
TimerM_PWM_set_duty(TIMERM_COUNTER1, TIMERM_CHB, BACK_LIGHT_NIGHT);
}
else
{
TimerM_PWM_set_duty(TIMERM_COUNTER1, TIMERM_CHB, BACK_LIGHT_DAY);
}
} }
else else
{ {
......
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