Commit 04dbd1fc authored by 李冠华's avatar 李冠华

🐞 fix:修改燃油指示灯从白变黄或从黄变白另一个颜色的灯不熄灭的问题

parent 6a77819d
......@@ -223,12 +223,14 @@ static void LED_Fuel_Alarm_Execution(Tellib_uint16_t led_status)
if (led_status == 1u)
{
/*点亮白灯*/
LED_Driver_Channel_Set(LampChannel_0, LampCh0_23_Fuel_Alarm_Y, LED_OFF);
LED_Driver_Channel_Set(LampChannel_0, LampCh0_24_Fuel_Alarm_W, LED_ON);
SEG_SET_LED_STS(SEG_LED_Fuel_Oil, 1U);
}
else if (led_status == 2u)
{
/*点亮黄灯*/
LED_Driver_Channel_Set(LampChannel_0, LampCh0_24_Fuel_Alarm_W, LED_OFF);
LED_Driver_Channel_Set(LampChannel_0, LampCh0_23_Fuel_Alarm_Y, LED_ON);
SEG_SET_LED_STS(SEG_LED_Fuel_Oil, 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