Skip to content

Commit a462a31

Browse files
committed
Fix pre-commit formatting
1 parent a2bbca1 commit a462a31

File tree

1 file changed

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

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ void common_hal_neopixel_write(const digitalio_digitalinout_obj_t *digitalinout,
4747
// two.
4848
int icnt;
4949
while ((port_get_raw_ticks(NULL) < next_start_raw_ticks) &
50-
(next_start_raw_ticks-port_get_raw_ticks(NULL) < 100)) {
50+
(next_start_raw_ticks - port_get_raw_ticks(NULL) < 100)) {
5151

5252
RUN_BACKGROUND_TASKS;
5353
}
@@ -140,20 +140,20 @@ void common_hal_neopixel_write(const digitalio_digitalinout_obj_t *digitalinout,
140140
}
141141
}
142142
if (channel == 1) {
143-
icnt=0;
143+
icnt = 0;
144144
while ((pwm->STA_b.FULL1 == 1) & (icnt++ < 150)) {
145145
RUN_BACKGROUND_TASKS;
146146
}
147147
// Dummy value for the first channel.
148148
pwm->FIF1 = 0x000000;
149149
}
150-
icnt=0;
150+
icnt = 0;
151151
while ((pwm->STA_b.FULL1 == 1) & (icnt++ < 150)) {
152152
RUN_BACKGROUND_TASKS;
153153
}
154154
pwm->FIF1 = expanded;
155155
if (channel == 0) {
156-
icnt=0;
156+
icnt = 0;
157157
while ((pwm->STA_b.FULL1 == 1) & (icnt++ < 150)) {
158158
RUN_BACKGROUND_TASKS;
159159
}
@@ -168,7 +168,7 @@ void common_hal_neopixel_write(const digitalio_digitalinout_obj_t *digitalinout,
168168
}
169169
// Wait for transmission to start.
170170
icnt = 0;
171-
while (((pwm->STA_b.STA1 ==0) & (pwm->STA_b.STA2 == 0)) & (icnt++ < 150)) {
171+
while (((pwm->STA_b.STA1 == 0) & (pwm->STA_b.STA2 == 0)) & (icnt++ < 150)) {
172172
RUN_BACKGROUND_TASKS;
173173
}
174174
// Wait for transmission to complete.

0 commit comments

Comments
 (0)