Skip to content

Commit 09ccf29

Browse files
committed
Replace bitwise or with boolean or
1 parent 39d3d97 commit 09ccf29

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
@@ -171,7 +171,7 @@ void common_hal_neopixel_write(const digitalio_digitalinout_obj_t *digitalinout,
171171
}
172172
// Wait for transmission to complete.
173173
icnt = 0;
174-
while (((pwm->STA_b.STA1 == 1) | (pwm->STA_b.STA2 == 1)) && (icnt++ < 150)) {
174+
while (((pwm->STA_b.STA1 == 1) || (pwm->STA_b.STA2 == 1)) && (icnt++ < 150)) {
175175
RUN_BACKGROUND_TASKS;
176176
}
177177
// Shouldn't be anything left in queue but clear it so the clock doesn't crash if there is

0 commit comments

Comments
 (0)