Commit 39773061 authored by 李冠华's avatar 李冠华

🐞 fix:修改发动机故障指示灯段码不能点亮的问题

parent a206ef33
...@@ -127,10 +127,7 @@ void CAN_0x225_Receive(uint8_t CopyData []) ...@@ -127,10 +127,7 @@ void CAN_0x225_Receive(uint8_t CopyData [])
#if (PART_NUMBER == G54_A01) #if (PART_NUMBER == G54_A01)
if ((Get_CAN_CH0_ID_225_Sig_VCU_EmsFltLv3() == 1U) && (g_EngineMalfunctionStatus == 0U)) if ((Get_CAN_CH0_ID_225_Sig_VCU_EmsFltLv3() == 1U) && (g_EngineMalfunctionStatus == 0U))
{ {
if (g_u8EmsFltLv3Count < 3U) g_u8EmsFltLv3Count++;
{
g_u8EmsFltLv3Count++;
}
} }
else if ((Get_CAN_CH0_ID_225_Sig_VCU_EmsFltLv3() == 0U) && (g_EngineMalfunctionStatus == 1U)) else if ((Get_CAN_CH0_ID_225_Sig_VCU_EmsFltLv3() == 0U) && (g_EngineMalfunctionStatus == 1U))
{ {
...@@ -185,12 +182,12 @@ static void LED_EFI_failure_Execution(Tellib_uint16_t led_status) ...@@ -185,12 +182,12 @@ static void LED_EFI_failure_Execution(Tellib_uint16_t led_status)
if (led_status == 1u) if (led_status == 1u)
{ {
LED_Driver_Channel_Set(LampChannel_0, LampCh0_09_EFI_failure_Y, LED_ON); LED_Driver_Channel_Set(LampChannel_0, LampCh0_09_EFI_failure_Y, LED_ON);
SEG_SET_LED_STS(1,1); SEG_SET_LED_STS(SEG_LED_Engine_Failure, 1U);
} }
else else
{ {
LED_Driver_Channel_Set(LampChannel_0, LampCh0_09_EFI_failure_Y, LED_OFF); LED_Driver_Channel_Set(LampChannel_0, LampCh0_09_EFI_failure_Y, LED_OFF);
SEG_SET_LED_STS(1,0); SEG_SET_LED_STS(SEG_LED_Engine_Failure, 0U);
} }
#endif #endif
} }
......
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