Commit 1f148072 authored by 郑萍's avatar 郑萍

🐞 fix:档位遇到故障时闪烁需要点亮背光灯,只需关窗即可

parent 778fbd82
...@@ -697,23 +697,11 @@ static Tellib_uint16_t LED_Cutterhead_Gear_Judgement(void) ...@@ -697,23 +697,11 @@ static Tellib_uint16_t LED_Cutterhead_Gear_Judgement(void)
} }
static void LED_Cutterhead_Gear_Execution(Tellib_uint16_t led_status) static void LED_Cutterhead_Gear_Execution(Tellib_uint16_t led_status)
{ {
if (led_status == 1u) if (led_status != 0u)
{ {
LED_Driver_Channel_Set(LampChannel_0, LampCh0_15_Cutterhead_Gear_W, LED_ON); LED_Driver_Channel_Set(LampChannel_0, LampCh0_15_Cutterhead_Gear_W, LED_ON);
// SEG_SET_LED_STS(1,1); // SEG_SET_LED_STS(1,1);
} }
else if (led_status == 2u)
{
if (FLASH_SYNC_1Hz)
{
LED_Driver_Channel_Set(LampChannel_0, LampCh0_15_Cutterhead_Gear_W, LED_ON);
}
else
{
LED_Driver_Channel_Set(LampChannel_0, LampCh0_15_Cutterhead_Gear_W, LED_OFF);
}
// SEG_SET_LED_STS(1,0);
}
else else
{ {
LED_Driver_Channel_Set(LampChannel_0, LampCh0_15_Cutterhead_Gear_W, LED_OFF); LED_Driver_Channel_Set(LampChannel_0, LampCh0_15_Cutterhead_Gear_W, LED_OFF);
...@@ -836,7 +824,7 @@ static void LED_P_GEAR_G_Execution(Tellib_uint16_t led_status) ...@@ -836,7 +824,7 @@ static void LED_P_GEAR_G_Execution(Tellib_uint16_t led_status)
} }
else else
{ {
LED_Driver_Channel_Set(LampChannel_0, LampCh0_05_Gears_W, LED_OFF); LED_Driver_Channel_Set(LampChannel_0, LampCh0_05_Gears_W, LED_ON);
SEG_SET_GEAR(1, Gear_OFF, 0); SEG_SET_GEAR(1, Gear_OFF, 0);
} }
} }
......
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