Update ports/broadcom/common-hal/neopixel_write/__init__.c

Co-authored-by: Scott Shawcroft <scott@tannewt.org>
This commit is contained in:
RetiredWizard 2023-02-13 14:44:54 -05:00 committed by GitHub
parent 575f177dd0
commit 791aefd388
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,7 @@ void common_hal_neopixel_write(const digitalio_digitalinout_obj_t *digitalinout,
// Wait to make sure we don't append onto the last transmission. This should only be a tick or // Wait to make sure we don't append onto the last transmission. This should only be a tick or
// two. // two.
int icnt; int icnt;
while ((port_get_raw_ticks(NULL) < next_start_raw_ticks) & while ((port_get_raw_ticks(NULL) < next_start_raw_ticks) &&
(next_start_raw_ticks - port_get_raw_ticks(NULL) < 100)) { (next_start_raw_ticks - port_get_raw_ticks(NULL) < 100)) {
RUN_BACKGROUND_TASKS; RUN_BACKGROUND_TASKS;
} }