Skip to content

Commit 575f177

Browse files
Update ports/broadcom/common-hal/neopixel_write/__init__.c
Co-authored-by: Scott Shawcroft <[email protected]>
1 parent 1679790 commit 575f177

File tree

1 file changed

+1
-1
lines changed
  • ports/broadcom/common-hal/neopixel_write

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ void common_hal_neopixel_write(const digitalio_digitalinout_obj_t *digitalinout,
9696
// Wait for the clock to start up.
9797
COMPLETE_MEMORY_READS;
9898
icnt = 0;
99-
while ((CM_PWM->CS_b.BUSY == 0) & (icnt++ < 1000)) {
99+
while ((CM_PWM->CS_b.BUSY == 0) && (icnt++ < 1000)) {
100100
COMPLETE_MEMORY_READS;
101101
}
102102
}

0 commit comments

Comments
 (0)