Commit 35eb3233 authored by 李冠华's avatar 李冠华

feat:修改报文超时总SOC显示逻辑

parent 98678bb1
...@@ -512,14 +512,11 @@ static void Data_Soc_All_Soc_Service(void) ...@@ -512,14 +512,11 @@ static void Data_Soc_All_Soc_Service(void)
{ {
Soc.AllSocValue = 100u; Soc.AllSocValue = 100u;
} }
Soc.AllSocValid = 1U;
} }
if (VCUChgMode == 1U) if (VCUChgMode == 1U)
{ {
if (Get_CAN_Power_State() > KEY_OFF) if (Get_CAN_Power_State() == KEY_OFF)
{
Soc.AllSocValid = 1U;
}
else
{ {
Soc.AllSocValue = 0U; Soc.AllSocValue = 0U;
Soc.AllSocValid = 0U; Soc.AllSocValid = 0U;
...@@ -532,10 +529,6 @@ static void Data_Soc_All_Soc_Service(void) ...@@ -532,10 +529,6 @@ static void Data_Soc_All_Soc_Service(void)
Soc.AllSocValue = 0U; Soc.AllSocValue = 0U;
Soc.AllSocValid = 0U; Soc.AllSocValid = 0U;
} }
else
{
Soc.AllSocValid = 1U;
}
} }
#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