Commit dcb6b00a authored by zhengyuan.bai's avatar zhengyuan.bai

🐞 fix: 自检时故障指示灯不闪烁

parent 8cbb3659
...@@ -149,7 +149,7 @@ void Gauge_faultcode_Display(void) ...@@ -149,7 +149,7 @@ void Gauge_faultcode_Display(void)
{ {
uint8_t u8faucodeValid = Get_FaultCode_Valid(); uint8_t u8faucodeValid = Get_FaultCode_Valid();
uint8_t u8faucodelValue = Get_FaultCode_Value(); uint8_t u8faucodelValue = Get_FaultCode_Value();
SEG_SET_Fault_Code(u8faucodeValid, u8faucodelValue); SEG_SET_Fault_Code(u8faucodeValid, u8faucodelValue, 0);
} }
void Clear_Bu98(void) void Clear_Bu98(void)
......
...@@ -1018,7 +1018,7 @@ _Fun_Res SEG_SET_EleDial_AllSOC(uint8_t m_Flag, uint16_t m_NUM) ...@@ -1018,7 +1018,7 @@ _Fun_Res SEG_SET_EleDial_AllSOC(uint8_t m_Flag, uint16_t m_NUM)
* - EX_OK 上报成功 * - EX_OK 上报成功
* - EX_ERR 上报失败 * - EX_ERR 上报失败
*/ */
_Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM) _Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM, uint8_t checkself)
{ {
_Fun_Res m_Res; _Fun_Res m_Res;
uint16_t Num; uint16_t Num;
...@@ -1030,6 +1030,8 @@ _Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM) ...@@ -1030,6 +1030,8 @@ _Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM)
else else
{ {
if (m_Flag == 1u) if (m_Flag == 1u)
{
if(checkself != 1)
{ {
if (FLASH_SYNC_1Hz) if (FLASH_SYNC_1Hz)
{ {
...@@ -1039,6 +1041,12 @@ _Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM) ...@@ -1039,6 +1041,12 @@ _Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM)
{ {
IC1_SEG087 = IC_SEG_GREY; IC1_SEG087 = IC_SEG_GREY;
} }
}
else
{
IC1_SEG087 = IC_SEG_ON;
}
IC1_SEG094 = IC_SEG_ON; IC1_SEG094 = IC_SEG_ON;
IC1_SEG093 = IC_SEG_ON; IC1_SEG093 = IC_SEG_ON;
IC1_SEG091 = IC_SEG_ON; IC1_SEG091 = IC_SEG_ON;
...@@ -2691,7 +2699,7 @@ void Check_SEG_Display(void) ...@@ -2691,7 +2699,7 @@ void Check_SEG_Display(void)
uint32_t fau_code = Checkself_num * 1111; uint32_t fau_code = Checkself_num * 1111;
Fuel = Checkself_SEG_step / 5u; Fuel = Checkself_SEG_step / 5u;
SEG_SET_FuelDial(1, Fuel); SEG_SET_FuelDial(1, Fuel);
SEG_SET_Fault_Code(1, fau_code); SEG_SET_Fault_Code(1, fau_code, 1);
} }
uint32_t EleDial_2SOC = ((check_SEG_step * 10) / 48); uint32_t EleDial_2SOC = ((check_SEG_step * 10) / 48);
...@@ -2777,7 +2785,7 @@ void Checkself_SEG_Display(void) ...@@ -2777,7 +2785,7 @@ void Checkself_SEG_Display(void)
uint32_t fau_code = Checkself_num * 1111; uint32_t fau_code = Checkself_num * 1111;
Fuel = Checkself_SEG_step / 5u; Fuel = Checkself_SEG_step / 5u;
SEG_SET_FuelDial(1, Fuel); SEG_SET_FuelDial(1, Fuel);
SEG_SET_Fault_Code(1, fau_code); SEG_SET_Fault_Code(1, fau_code, 1);
} }
uint32_t EleDial_2SOC = ((Checkself_SEG_step * 10) / 48); uint32_t EleDial_2SOC = ((Checkself_SEG_step * 10) / 48);
......
...@@ -83,7 +83,7 @@ _Fun_Res SEG_SET_L8_NUM(uint8_t m_Flag , uint8_t m_NUM); ...@@ -83,7 +83,7 @@ _Fun_Res SEG_SET_L8_NUM(uint8_t m_Flag , uint8_t m_NUM);
/**@brief 故障码显示函数*/ /**@brief 故障码显示函数*/
_Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM); _Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM, uint8_t checkself);
/**@brief 单次时间显示函数*/ /**@brief 单次时间显示函数*/
_Fun_Res SEG_SET_Clock(uint8_t m_hour, uint8_t m_minute, uint8_t m_icon, uint8_t m_Flag1, uint8_t m_Flag2 ); _Fun_Res SEG_SET_Clock(uint8_t m_hour, uint8_t m_minute, uint8_t m_icon, uint8_t m_Flag1, uint8_t m_Flag2 );
......
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