Commit df9abfdb authored by 李俭双's avatar 李俭双

🐞 fix:更改代码审核问题:远光灯开启关闭计时

parent aa8896ad
...@@ -19,7 +19,7 @@ void BackLight_Process(void) ...@@ -19,7 +19,7 @@ void BackLight_Process(void)
{ {
if (SYS_OPR_STAT_IGN_ON) if (SYS_OPR_STAT_IGN_ON)
{ {
if ( HighBeam_Timer.LED_Turnon == 5 ) if ( HighBeam_Timer.LED_Turnon == 10 )
{ {
TimerM_PWM_set_duty(TIMERM_COUNTER1, TIMERM_CHB, BACK_LIGHT_NIGHT); TimerM_PWM_set_duty(TIMERM_COUNTER1, TIMERM_CHB, BACK_LIGHT_NIGHT);
} }
......
...@@ -90,13 +90,13 @@ static Tellib_uint16_t LED_High_Beam_Judgement(void) ...@@ -90,13 +90,13 @@ static Tellib_uint16_t LED_High_Beam_Judgement(void)
if (Line_In_Get_Status(LINE_IN_HighBeam)) if (Line_In_Get_Status(LINE_IN_HighBeam))
{ {
LED_STATE = 1; LED_STATE = 1;
if(HighBeam_Timer.LED_Turnon < 5 ) if(HighBeam_Timer.LED_Turnon < 10 )
{ {
HighBeam_Timer.LED_Turnon ++; HighBeam_Timer.LED_Turnon ++;
} }
else else
{ {
HighBeam_Timer.LED_Turnon = 5; HighBeam_Timer.LED_Turnon = 10;
HighBeam_Timer.LED_Turnoff = 0; HighBeam_Timer.LED_Turnoff = 0;
} }
...@@ -104,13 +104,13 @@ static Tellib_uint16_t LED_High_Beam_Judgement(void) ...@@ -104,13 +104,13 @@ static Tellib_uint16_t LED_High_Beam_Judgement(void)
else else
{ {
LED_STATE = 0; LED_STATE = 0;
if(HighBeam_Timer.LED_Turnoff < 5 ) if(HighBeam_Timer.LED_Turnoff < 10 )
{ {
HighBeam_Timer.LED_Turnoff ++; HighBeam_Timer.LED_Turnoff ++;
} }
else else
{ {
HighBeam_Timer.LED_Turnoff = 5; HighBeam_Timer.LED_Turnoff = 10;
HighBeam_Timer.LED_Turnon = 0; HighBeam_Timer.LED_Turnon = 0;
} }
......
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