diff --git a/bsp/src/bsp_led.c b/bsp/src/bsp_led.c index ba6492d..c1bf4f3 100644 --- a/bsp/src/bsp_led.c +++ b/bsp/src/bsp_led.c @@ -33,7 +33,13 @@ static void BSP_Led_thread_entry(void *param) } else if ((!nt26k_conncet_tcp_flag)) { - LED_G_INTERNET; + LED_STOP(r); + LED_STOP(g); + LED_STOP(y); + rt_pin_write(LED_G_PIN, PIN_HIGH); + rt_thread_mdelay(500); + rt_pin_write(LED_G_PIN, PIN_LOW); + rt_thread_mdelay(500); } } else if (SysControl.status == KMuteEvent) @@ -46,14 +52,19 @@ static void BSP_Led_thread_entry(void *param) } else { - LED_G_INTERNET; + LED_STOP(r); + LED_STOP(g); + LED_STOP(y); + rt_pin_write(LED_G_PIN, PIN_HIGH); + rt_thread_mdelay(500); + rt_pin_write(LED_G_PIN, PIN_LOW); + rt_thread_mdelay(500); } } } - rt_thread_mdelay(1500); + rt_thread_mdelay(1000); } } - int BSP_LED_Init(void) { led_r = agile_led_create(LED_R_PIN, PIN_HIGH, "100,0", 0);