Commit 8d3802ea authored by 李俭双's avatar 李俭双

🐞 fix:更改TCS指示灯逻辑

parent 46be5833
......@@ -361,14 +361,15 @@ static void LED_Bluetooth_Execution(Tellib_uint16_t led_status)
static Tellib_uint16_t LED_TCS_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 (Get_Dis_Tcs_Val() == 1)
{
LED_STATE = 1;
}
else
{
if (Get_Dis_Tcs_Val() == 1)
if((CAN_MSG_Status(&CAN_CH0_CanMsgOp, CAN_CH0_ID_CAN_0x120_Msg_Count) == CAN_SIG_LOST) )
{
LED_STATE = 1;
}
else
{
if((Get_CAN_CH0_ID_120_Sig_TCSStatus() == 1) || (Get_CAN_CH0_ID_120_Sig_TCSStatus() == 2) || (Get_CAN_CH0_ID_120_Sig_TCSStatus() == 3) || (Get_CAN_CH0_ID_120_Sig_TCSStatus() == 5))
{
LED_STATE = 1;
......@@ -385,12 +386,14 @@ static Tellib_uint16_t LED_TCS_Judgement(void)
{
LED_STATE = 0;
}
}
else
{
LED_STATE = 0;
}
}
else
{
LED_STATE = 0;
}
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