Commit 8bd707a3 authored by 李冠华's avatar 李冠华

🐞 fix:修改混动车型电量条在不同电源状态下的显示

parent 26d92e2d
......@@ -343,7 +343,7 @@ static void Data_Soc_DisplayEffect_Service(void)
Soc.Dis_Seg1 = 0U;
}
}
if ((Get_CAN_Power_State() < KEY_ACC) || (Common_Get_IG_Sts() == COMMON_POWER_OFF))
if (Get_CAN_Power_State() == PKEY_ON)
{
if (SocPoweroffTime >= 3600U)
{
......@@ -355,6 +355,10 @@ static void Data_Soc_DisplayEffect_Service(void)
SocPoweroffTime ++;
}
}
else if(Get_CAN_Power_State() == KEY_OFF)
{
Soc.Valid1 = 0U;
}
else
{
Soc.Valid1 = 1U;
......@@ -362,7 +366,7 @@ static void Data_Soc_DisplayEffect_Service(void)
}
else
{
if ((Common_Get_IG_Sts() == COMMON_POWER_ON) && (System_Indicator_CANFlag != 1))
if (Get_CAN_Power_State() == KEY_ACC)
{
Soc.Dis_Seg1 = Soc.Act_Seg1;
Soc.Valid1 = 1U;
......
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