Fixup WS2812 vendor driver (#19028)

This commit is contained in:
jack 2022-11-10 15:38:13 -07:00 committed by GitHub
parent 159ec766f7
commit dad5262425
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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.