diff --git a/source/app/app_config.c b/source/app/app_config.c index 9f197e1..360b049 100644 --- a/source/app/app_config.c +++ b/source/app/app_config.c @@ -123,9 +123,9 @@ void L3_led_clear(void) //设置led灯状态 for(i=0; i> i) & 0x0001) { - R.led_status[i] = LED0_ON; + R.led_status[i] = 1; } } } diff --git a/source/bsp/bsp_led.c b/source/bsp/bsp_led.c index 3e5114d..c3e4d31 100644 --- a/source/bsp/bsp_led.c +++ b/source/bsp/bsp_led.c @@ -16,9 +16,9 @@ void bsp_led_set(U8 status) LED0 = status; } -void bsp_bled0_set(U8 status) +void bsp_bled0_set() { - BLED0 = status; + BLED0 = BLED0_ON; } extern void delay(unsigned int i); diff --git a/source/bsp/bsp_led.h b/source/bsp/bsp_led.h index 7e48579..782e69b 100644 --- a/source/bsp/bsp_led.h +++ b/source/bsp/bsp_led.h @@ -5,7 +5,7 @@ extern void bsp_led_init(void); extern void bsp_led_set(U8 status); -extern void bsp_bled0_set(U8 status); +extern void bsp_bled0_set(); extern void bsp_bled_set_multi(unsigned int dat); #define BLED_SET_STATUS(N, status); do { \