Skip to content

Commit

Permalink
Fixup WS2812 vendor driver (#19028)
Browse files Browse the repository at this point in the history
  • Loading branch information
waffle87 authored Nov 10, 2022

Verified

This commit was signed with the committer’s verified signature.
minrk Min RK
1 parent 159ec76 commit dad5262
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platforms/chibios/drivers/vendor/RP/RP2040/ws2812_vendor.c
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit dad5262

Please sign in to comment.