From 5e4cb4f1e2448901806d59ce2c3ee1d6c7b98091 Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Wed, 15 Dec 2021 13:46:31 -0800 Subject: [PATCH] Yes, index is unused. That's ok. --- ports/broadcom/common-hal/neopixel_write/__init__.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ports/broadcom/common-hal/neopixel_write/__init__.c b/ports/broadcom/common-hal/neopixel_write/__init__.c index 420ca369da..c045317f93 100644 --- a/ports/broadcom/common-hal/neopixel_write/__init__.c +++ b/ports/broadcom/common-hal/neopixel_write/__init__.c @@ -101,6 +101,8 @@ void common_hal_neopixel_write(const digitalio_digitalinout_obj_t *digitalinout, if (index == 1) { pwm = PWM1; } + #else + (void)index; #endif pwm->RNG1 = 24;