Update ports/broadcom/common-hal/neopixel_write/__init__.c
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
This commit is contained in:
parent
575f177dd0
commit
791aefd388
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user