Skip to content

Commit b4e1ced

Browse files
committed
led: minor update
1 parent 116f7bf commit b4e1ced

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

main/src/user/led.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ static const uint16_t led_mode_table[][2] = {
2727
{ 25, 100}, // 8,
2828
{ 25, 0} // 9, Keep on
2929
};
30+
3031
static uint8_t led_mode_index = 3;
3132

3233
static void led_task(void *pvParameter)
@@ -70,9 +71,9 @@ void led_set_mode(uint8_t idx)
7071
#endif
7172
}
7273

74+
#ifdef CONFIG_ENABLE_LED
7375
void led_init(void)
7476
{
75-
#ifdef CONFIG_ENABLE_LED
7677
xTaskCreatePinnedToCore(led_task, "LedT", 1024, NULL, 5, NULL, 1);
77-
#endif
7878
}
79+
#endif

0 commit comments

Comments
 (0)