From ff4b1b28d2f222f660e21228c6ca80c4894d54ec Mon Sep 17 00:00:00 2001 From: root Date: Mon, 17 May 2021 16:43:55 -0500 Subject: [PATCH] iFormatting fixes --- ports/raspberrypi/common-hal/pulseio/PulseOut.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ports/raspberrypi/common-hal/pulseio/PulseOut.c b/ports/raspberrypi/common-hal/pulseio/PulseOut.c index 1a7b5892c1..99f59b2520 100644 --- a/ports/raspberrypi/common-hal/pulseio/PulseOut.c +++ b/ports/raspberrypi/common-hal/pulseio/PulseOut.c @@ -50,9 +50,9 @@ void pulse_finish(void) { if (pulse_index >= pulse_length) { return; } - add_alarm_in_us( pulse_buffer[pulse_index], pulseout_interrupt_handler, NULL, false); + add_alarm_in_us(pulse_buffer[pulse_index], pulseout_interrupt_handler, NULL, false); if (pulse_index % 2 == 0) { - common_hal_pwmio_pwmout_set_duty_cycle(pwmout_obj,current_duty_cycle); + common_hal_pwmio_pwmout_set_duty_cycle(pwmout_obj,current_duty_cycle); } } @@ -76,7 +76,7 @@ void common_hal_pulseio_pulseout_construct(pulseio_pulseout_obj_t *self, current_duty_cycle = common_hal_pwmio_pwmout_get_duty_cycle(pwmout_obj); self->pin = carrier->pin->number; self->slice = carrier->slice; - pwm_set_enabled (pwmout_obj->slice,false); + pwm_set_enabled(pwmout_obj->slice,false); } 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 pulse_index = 0; pulse_length = length; - add_alarm_in_us( pulses[0], pulseout_interrupt_handler, NULL, false); + add_alarm_in_us(pulses[0], pulseout_interrupt_handler, NULL, false); common_hal_pwmio_pwmout_set_duty_cycle(pwmout_obj,current_duty_cycle); - pwm_set_enabled (pwmout_obj->slice,true); + pwm_set_enabled(pwmout_obj->slice,true); - while(pulse_index < length) { + while (pulse_index < length) { // Do other things while we wait. The interrupts will handle sending the // signal. RUN_BACKGROUND_TASKS; } - pwm_set_enabled (pwmout_obj->slice,false); + pwm_set_enabled(pwmout_obj->slice,false); }