From c6d08ae139b6f5f90b312d11b30d5113d6ec2003 Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Sun, 26 Mar 2023 20:15:38 +0200 Subject: [PATCH] Fix conditional build for WS2812. Signed-off-by: Pol Henarejos --- src/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 21c6ccf..648b497 100644 --- a/src/main.c +++ b/src/main.c @@ -225,7 +225,8 @@ void led_off_all() { gpio_put(TINY2040_LED_B_PIN, 1); #elif defined(PICO_DEFAULT_LED_PIN) gpio_put(PICO_DEFAULT_LED_PIN, 0); -#elif (PICO_DEFAULT_WS2812_PIN) +#endif +#if (PICO_DEFAULT_WS2812_PIN) PIO pio = pio0; int sm = 0; uint offset = pio_add_program(pio, &ws2812_program);