diff options
author | jack <0x6A73@pm.me> | 2022-11-10 15:38:13 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-11 09:38:13 +1100 |
commit | dad5262425c311b3e14cf886a29c312e3edf7dd4 (patch) | |
tree | a58761e729fa47a91d7db19a2be78cfd7b084fe8 /platforms/chibios/drivers/vendor/RP | |
parent | 159ec766f79f640bb05b212f8d7f99b05f8a7af3 (diff) |
Fixup WS2812 vendor driver (#19028)
Diffstat (limited to 'platforms/chibios/drivers/vendor/RP')
-rw-r--r-- | platforms/chibios/drivers/vendor/RP/RP2040/ws2812_vendor.c | 2 |
1 files changed, 1 insertions, 1 deletions
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. |