Commit 03e1b07e authored by 李冠华's avatar 李冠华

feat:修改电池充电进行中指示灯工作逻辑

parent 6dca2b61
......@@ -583,10 +583,23 @@ static Tellib_uint16_t LED_Battery_Charging_Judgement(void)
}
#else
Tellib_uint8_t Signal1 = Get_CAN_CH0_ID_220_Sig_VCU_ChgMode();
Tellib_uint8_t BattChargeState = Get_CAN_CH0_ID_31A_Sig_MBMS_StatBattChargeState();
if (Signal1 == 1U)
{
LED_STATE = (Tellib_uint16_t) g_ChgModeStatus;
// LED_STATE = (Tellib_uint16_t) g_ChgModeStatus;
if (BattChargeState == 2U)
{
LED_STATE = 1U;
}
else if (BattChargeState == 3U)
{
LED_STATE = 2U;
}
else
{
LED_STATE = 0U;
}
}
else
{
......@@ -606,11 +619,7 @@ static void LED_Battery_Charging_Execution(Tellib_uint16_t led_status)
}
else if (led_status == 2u)
{
#if (PART_NUMBER == RMR42E_60)
if (FLASH_SYNC_1Hz)
#else
if (FLASH_SYNC_05Hz)
#endif
{
LED_Driver_Channel_Set(LampChannel_0, LampCh0_08_Battery_Charging_W, LED_ON);
SEG_SET_LED_STS(SEG_LED_Recharge, 1);
......
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