Commit 59dc561a authored by 时昊's avatar 时昊

删除手刹灯,手刹灯和制动故障灯共用制动故障灯的灯位,逻辑是或的关系

parent effe29e4
......@@ -1158,7 +1158,7 @@ Tellib_uint16_t Water_High_Res = 0u;
Tellib_uint16_t LED_Brake_Lamp_Judge(void)
{
Tellib_uint16_t res = 0u;
if ( Line_In_Get_Status(LINE_IN_Brake_Fault) == 1u )
if (( Line_In_Get_Status(LINE_IN_Brake_Fault) == 1u )||( Line_In_Get_Status(LINE_IN_Handbrake) == 1u ))
{
res = 1u;
}
......@@ -1197,41 +1197,10 @@ Tellib_uint16_t Water_High_Res = 0u;
Tellib_uint16_t LED_HandBrake_Lamp_Judge(void)
{
Tellib_uint16_t res = 0u;
if ( Line_In_Get_Status(LINE_IN_Handbrake) == 1u )
{
res = 1u;
}
else
{
res = 0u;
}
return res;
}
void LED_HandBrake_Lamp_Exec(Tellib_uint16_t led_status)
{
if(Get_DIAG_TelltalesCtrlsts() == 3)
{
if(LEDContrl._3F80.HandBreak == 1)
{
LED_Driver_Channel_Set(LED_Attr[LED_HandBrake_Lamp].chip, LED_Attr[LED_HandBrake_Lamp].channel, LED_Attr[LED_HandBrake_Lamp].brightness);
}
else
{
LED_Driver_Channel_Set(LED_Attr[LED_HandBrake_Lamp].chip, LED_Attr[LED_HandBrake_Lamp].channel, 0);
}
}
else
{
if (led_status == 1u)
{
LED_Driver_Channel_Set(LED_Attr[LED_HandBrake_Lamp].chip, LED_Attr[LED_HandBrake_Lamp].channel, LED_Attr[LED_HandBrake_Lamp].brightness);
}
else
{
LED_Driver_Channel_Set(LED_Attr[LED_HandBrake_Lamp].chip, LED_Attr[LED_HandBrake_Lamp].channel, 0);
}
}
}
Tellib_uint16_t LED_Safety_Belt_Lamp_Judge(void)
{
......
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