From 575f177dd09f0f518f7e2c8514b20e9b12c19af8 Mon Sep 17 00:00:00 2001 From: RetiredWizard Date: Mon, 13 Feb 2023 14:44:46 -0500 Subject: [PATCH] Update ports/broadcom/common-hal/neopixel_write/__init__.c Co-authored-by: Scott Shawcroft --- ports/broadcom/common-hal/neopixel_write/__init__.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/broadcom/common-hal/neopixel_write/__init__.c b/ports/broadcom/common-hal/neopixel_write/__init__.c index d685ac53ce..38b1028bb3 100644 --- a/ports/broadcom/common-hal/neopixel_write/__init__.c +++ b/ports/broadcom/common-hal/neopixel_write/__init__.c @@ -96,7 +96,7 @@ void common_hal_neopixel_write(const digitalio_digitalinout_obj_t *digitalinout, // Wait for the clock to start up. COMPLETE_MEMORY_READS; icnt = 0; - while ((CM_PWM->CS_b.BUSY == 0) & (icnt++ < 1000)) { + while ((CM_PWM->CS_b.BUSY == 0) && (icnt++ < 1000)) { COMPLETE_MEMORY_READS; } }