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

🐞 fix:43276 解决故障码显示先显示P0000再显示正确故障码的问题

parent 9af842f6
...@@ -3118,7 +3118,7 @@ void SEG_SET_ODO_TRIP_FAULTCODE_TCS_DIS(uint8_t m_Uint, uint32_t m_NUM_ODO, uint ...@@ -3118,7 +3118,7 @@ void SEG_SET_ODO_TRIP_FAULTCODE_TCS_DIS(uint8_t m_Uint, uint32_t m_NUM_ODO, uint
IC1_SEG074 = IC_SEG_ON; IC1_SEG074 = IC_SEG_ON;
IC1_SEG073 = IC_SEG_ON; IC1_SEG073 = IC_SEG_ON;
IC1_SEG069 = IC_SEG_ON; IC1_SEG069 = IC_SEG_ON;
if(FaultCode_Number == 0) if((FaultCode_Number == 0) && (FaultCode_Data[0] == 0))
{ {
SEG_SET_DTC_NUM(0); SEG_SET_DTC_NUM(0);
DTC_DISTimer = 0; DTC_DISTimer = 0;
...@@ -3149,7 +3149,7 @@ void SEG_SET_ODO_TRIP_FAULTCODE_TCS_DIS(uint8_t m_Uint, uint32_t m_NUM_ODO, uint ...@@ -3149,7 +3149,7 @@ void SEG_SET_ODO_TRIP_FAULTCODE_TCS_DIS(uint8_t m_Uint, uint32_t m_NUM_ODO, uint
} }
Current_DTC_CODE = FaultCode_Data[DTC_DISCount] ; Current_DTC_CODE = FaultCode_Data[DTC_DISCount] ;
DTC_DISTimer = 0; DTC_DISTimer = 0;
if(Current_DTC_CODE == Current_DTC_CODE_BACK) if((Current_DTC_CODE == Current_DTC_CODE_BACK) && (DTC_DISCount < (FaultCode_Number - 1)))
{ {
DTC_DISCount ++ ; DTC_DISCount ++ ;
Current_DTC_CODE = FaultCode_Data[DTC_DISCount] ; Current_DTC_CODE = FaultCode_Data[DTC_DISCount] ;
......
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