Fix pre-commit formatting

This commit is contained in:
RetiredWizard 2023-02-11 12:10:03 -05:00
parent a2bbca1428
commit a462a316bd

View File

@ -47,7 +47,7 @@ void common_hal_neopixel_write(const digitalio_digitalinout_obj_t *digitalinout,
// two. // two.
int icnt; int icnt;
while ((port_get_raw_ticks(NULL) < next_start_raw_ticks) & while ((port_get_raw_ticks(NULL) < next_start_raw_ticks) &
(next_start_raw_ticks-port_get_raw_ticks(NULL) < 100)) { (next_start_raw_ticks - port_get_raw_ticks(NULL) < 100)) {
RUN_BACKGROUND_TASKS; RUN_BACKGROUND_TASKS;
} }
@ -140,20 +140,20 @@ void common_hal_neopixel_write(const digitalio_digitalinout_obj_t *digitalinout,
} }
} }
if (channel == 1) { if (channel == 1) {
icnt=0; icnt = 0;
while ((pwm->STA_b.FULL1 == 1) & (icnt++ < 150)) { while ((pwm->STA_b.FULL1 == 1) & (icnt++ < 150)) {
RUN_BACKGROUND_TASKS; RUN_BACKGROUND_TASKS;
} }
// Dummy value for the first channel. // Dummy value for the first channel.
pwm->FIF1 = 0x000000; pwm->FIF1 = 0x000000;
} }
icnt=0; icnt = 0;
while ((pwm->STA_b.FULL1 == 1) & (icnt++ < 150)) { while ((pwm->STA_b.FULL1 == 1) & (icnt++ < 150)) {
RUN_BACKGROUND_TASKS; RUN_BACKGROUND_TASKS;
} }
pwm->FIF1 = expanded; pwm->FIF1 = expanded;
if (channel == 0) { if (channel == 0) {
icnt=0; icnt = 0;
while ((pwm->STA_b.FULL1 == 1) & (icnt++ < 150)) { while ((pwm->STA_b.FULL1 == 1) & (icnt++ < 150)) {
RUN_BACKGROUND_TASKS; RUN_BACKGROUND_TASKS;
} }
@ -168,7 +168,7 @@ void common_hal_neopixel_write(const digitalio_digitalinout_obj_t *digitalinout,
} }
// Wait for transmission to start. // Wait for transmission to start.
icnt = 0; icnt = 0;
while (((pwm->STA_b.STA1 ==0) & (pwm->STA_b.STA2 == 0)) & (icnt++ < 150)) { while (((pwm->STA_b.STA1 == 0) & (pwm->STA_b.STA2 == 0)) & (icnt++ < 150)) {
RUN_BACKGROUND_TASKS; RUN_BACKGROUND_TASKS;
} }
// Wait for transmission to complete. // Wait for transmission to complete.