From dad5262425c311b3e14cf886a29c312e3edf7dd4 Mon Sep 17 00:00:00 2001 From: jack <0x6A73@pm.me> Date: Thu, 10 Nov 2022 15:38:13 -0700 Subject: Fixup WS2812 vendor driver (#19028) --- platforms/chibios/drivers/vendor/RP/RP2040/ws2812_vendor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'platforms/chibios/drivers/vendor/RP') diff --git a/platforms/chibios/drivers/vendor/RP/RP2040/ws2812_vendor.c b/platforms/chibios/drivers/vendor/RP/RP2040/ws2812_vendor.c index ca130e39f5..bc03213f3b 100644 --- a/platforms/chibios/drivers/vendor/RP/RP2040/ws2812_vendor.c +++ b/platforms/chibios/drivers/vendor/RP/RP2040/ws2812_vendor.c @@ -242,7 +242,7 @@ bool ws2812_init(void) { } static inline void sync_ws2812_transfer(void) { - if (chSemWaitTimeout(&TRANSFER_COUNTER, TIME_MS2I(RGBLED_NUM)) == MSG_TIMEOUT) { + if (chSemWaitTimeout(&TRANSFER_COUNTER, TIME_MS2I(WS2812_LED_COUNT)) == MSG_TIMEOUT) { // Abort the synchronization if we have to wait longer than the total // count of LEDs in milliseconds. This is safely much longer than it // would take to push all the data out. -- cgit v1.2.3