Commit 61e840ac authored by 李冠华's avatar 李冠华

🐞 fix:修改KL15或KL30断电后显示效果

parent e5be831f
......@@ -307,23 +307,34 @@ void Gauge_Service(void)
else
{
#if(PART_NUMBER == G54_A01)
if ((Get_CAN_Power_State() == PKEY_ON) && (Get_Soc1_Valid() == 1U))
if(Get_CAN_Power_State() == PKEY_ON)
{
Gauge_Power_SOC_pull_Display();
Gauge_EleDial_AllSOC_Display();
Clear_Bu98_Conditions(TEL_AND_SOC);
}
else
{
Clear_Bu98_Conditions(ONLY_TEL);
}
for (i = 0; i < LampCh0_MAX; i++)
{
if ((i == LampCh0_08_Battery_Charging_W) || (i == LampCh0_32_Charging_Connection_R))
if ((Get_CAN_Power_State() == PKEY_ON) && (Get_Soc1_Valid() == 1U))
{
;
Gauge_Power_SOC_pull_Display();
Gauge_EleDial_AllSOC_Display();
Clear_Bu98_Conditions(TEL_AND_SOC);
}
else
{
Clear_Bu98_Conditions(ONLY_TEL);
}
for (i = 0; i < LampCh0_MAX; i++)
{
if ((i == LampCh0_08_Battery_Charging_W) || (i == LampCh0_32_Charging_Connection_R))
{
;
}
else
{
LED_Driver_Channel_Set(LampChannel_0, i, LED_OFF);
}
}
}
else
{
Clear_Bu98();
for (i = 0; i < LampCh0_MAX; i++)
{
LED_Driver_Channel_Set(LampChannel_0, i, LED_OFF);
}
......
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