8000 iFormatting fixes · mimoccc/circuitpython@ff4b1b2 · GitHub
[go: up one dir, main page]

Skip to content

Commit ff4b1b2

Browse files
committed
iFormatting fixes
1 parent 11ef36d commit ff4b1b2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

ports/raspberrypi/common-hal/pulseio/PulseOut.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ void pulse_finish(void) {
5050
if (pulse_index >= pulse_length) {
5151
return;
5252
}
53-
add_alarm_in_us( pulse_buffer[pulse_index], pulseout_interrupt_handler, NULL, false);
53+
add_alarm_in_us(pulse_buffer[pulse_index], pulseout_interrupt_handler, NULL, false);
5454
if (pulse_index % 2 == 0) {
55-
common_hal_pwmio_pwmout_set_duty_cycle(pwmout_obj,current_duty_cycle);
55+
common_hal_pwmio_pwmout_set_duty_cycle(pwmout_obj,current_duty_cycle);
5656
}
5757
}
5858

@@ -76,7 +76,7 @@ void common_hal_pulseio_pulseout_construct(pulseio_pulseout_obj_t *self,
7676
current_duty_cycle = common_hal_pwmio_pwmout_get_duty_cycle(pwmout_obj);
7777
self->pin = carrier->pin->number;
7878
self->slice = carrier->slice;
79-
pwm_set_enabled (pwmout_obj->slice,false);
79+
pwm_set_enabled(pwmout_obj->slice,false);
8080
}
8181

8282
bool common_hal_pulseio_pulseout_deinited(pulseio_pulseout_obj_t *self) {
@@ -96,14 +96,14 @@ void common_hal_pulseio_pulseout_send(pulseio_pulseout_obj_t *self, uint16_t *pu
9696
pulse_index = 0;
9797
pulse_length = length;
9898

99-
add_alarm_in_us( pulses[0], pulseout_interrupt_handler, NULL, false);
99+
add_alarm_in_us(pulses[0], pulseout_interrupt_handler, NULL, false);
100100
common_hal_pwmio_pwmout_set_duty_cycle(pwmout_obj,current_duty_cycle);
101-
pwm_set_enabled (pwmout_obj->slice,true);
101+
pwm_set_enabled(pwmout_obj->slice,true);
102102

103-
while(pulse_index < length) {
103+
while (pulse_index < length) {
104104
// Do other things while we wait. The interrupts will handle sending the
105105
// signal.
106106
RUN_BACKGROUND_TASKS;
107107
}
108-
pwm_set_enabled (pwmout_obj->slice,false);
108+
pwm_set_enabled(pwmout_obj->slice,false);
109109
}

0 commit comments

Comments
 (0)
0