Commit e9b8e2dc authored by 陈家乐's avatar 陈家乐

🐞 fix:61437 更改ABS功能逻辑

parent 3bfd57b3
......@@ -167,21 +167,29 @@ static void LED_FAULT_ELECTROSPRAY_Execution(Tellib_uint16_t led_status)
static Tellib_uint16_t LED_ABS_Judgement(void)
{
Tellib_uint16_t LED_STATE = 0u;
if((CAN_MSG_Status(&CAN_CH0_CanMsgOp, CAN_CH0_ID_CAN_0x120_Msg_Count) == CAN_SIG_LOST) )
if (Line_In_Get_Status(LINE_IN_Fault_ABS))
{
LED_STATE = 1;
LED_STATE = 0;
}
else
{
if (Line_In_Get_Status(LINE_IN_Fault_ABS))
{
LED_STATE = 0;
}
else
{
LED_STATE = 1;
}
LED_STATE = 1;
}
//if((CAN_MSG_Status(&CAN_CH0_CanMsgOp, CAN_CH0_ID_CAN_0x120_Msg_Count) == CAN_SIG_LOST) )
//{
// LED_STATE = 1;
//}
//else
//{
// if (Line_In_Get_Status(LINE_IN_Fault_ABS))
// {
// LED_STATE = 0;
// }
// else
// {
// LED_STATE = 1;
// }
//}
return LED_STATE;
}
......
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