File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
ports/broadcom/common-hal/neopixel_write Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ void common_hal_neopixel_write(const digitalio_digitalinout_obj_t *digitalinout,
47
47
// two.
48
48
int icnt ;
49
49
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 )) {
51
51
52
52
RUN_BACKGROUND_TASKS ;
53
53
}
@@ -140,20 +140,20 @@ void common_hal_neopixel_write(const digitalio_digitalinout_obj_t *digitalinout,
140
140
}
141
141
}
142
142
if (channel == 1 ) {
143
- icnt = 0 ;
143
+ icnt = 0 ;
144
144
while ((pwm -> STA_b .FULL1 == 1 ) & (icnt ++ < 150 )) {
145
145
RUN_BACKGROUND_TASKS ;
146
146
}
147
147
// Dummy value for the first channel.
148
148
pwm -> FIF1 = 0x000000 ;
149
149
}
150
- icnt = 0 ;
150
+ icnt = 0 ;
151
151
while ((pwm -> STA_b .FULL1 == 1 ) & (icnt ++ < 150 )) {
152
152
RUN_BACKGROUND_TASKS ;
153
153
}
154
154
pwm -> FIF1 = expanded ;
155
155
if (channel == 0 ) {
156
- icnt = 0 ;
156
+ icnt = 0 ;
157
157
while ((pwm -> STA_b .FULL1 == 1 ) & (icnt ++ < 150 )) {
158
158
RUN_BACKGROUND_TASKS ;
159
159
}
@@ -168,7 +168,7 @@ void common_hal_neopixel_write(const digitalio_digitalinout_obj_t *digitalinout,
168
168
}
169
169
// Wait for transmission to start.
170
170
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 )) {
172
172
RUN_BACKGROUND_TASKS ;
173
173
}
174
174
// Wait for transmission to complete.
You can’t perform that action at this time.
0 commit comments