Commit fb6557eb authored by 李冠华's avatar 李冠华

feat:增加混动车型大灯灯光检测逻辑

parent 44b4e4ba
......@@ -575,6 +575,7 @@ static void LED_Bluetooth_Connection_Execution(Tellib_uint16_t led_status)
static Tellib_uint16_t LED_LED_Open_Judgement(void)
{
Tellib_uint16_t LED_STATE = 0u;
#if (PART_NUMBER == RMR42E_60)
if (Line_In_Get_Status(LINE_IN_BigLED) && openLED_flag)
{
LED_STATE = 1;
......@@ -583,6 +584,16 @@ static Tellib_uint16_t LED_LED_Open_Judgement(void)
{
LED_STATE = 0;
}
#else
if (Line_In_Get_Status(LINE_IN_BigLED) && (Get_CAN_Power_State() == KEY_ACC))
{
LED_STATE = 1;
}
else
{
LED_STATE = 0;
}
#endif
return LED_STATE;
}
static void LED_LED_Open_Execution(Tellib_uint16_t led_status)
......
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