From 1ec59cd534d13d418f8c8d7a6375ac1535d0c561 Mon Sep 17 00:00:00 2001 From: DavePutz Date: Thu, 29 Apr 2021 12:38:13 -0500 Subject: [PATCH] Fix up indentation --- ports/raspberrypi/common-hal/pulseio/PulseIn.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/ports/raspberrypi/common-hal/pulseio/PulseIn.c b/ports/raspberrypi/common-hal/pulseio/PulseIn.c index 66e5721eec..6e0c838d34 100644 --- a/ports/raspberrypi/common-hal/pulseio/PulseIn.c +++ b/ports/raspberrypi/common-hal/pulseio/PulseIn.c @@ -141,16 +141,16 @@ void common_hal_pulseio_pulsein_interrupt() { } // ignore pulses that are too short if (result <= MAX_PULSE && result > MIN_PULSE) { - self->buffer[buf_index] = (uint16_t) result; - if (self->len < self->maxlen) { - self->len++; + self->buffer[buf_index] = (uint16_t) result; + if (self->len < self->maxlen) { + self->len++; } - if (buf_index < self->maxlen) { - buf_index++; - } else { - self->start = 0; - buf_index = 0; - } + if (buf_index < self->maxlen) { + buf_index++; + } else { + self->start = 0; + buf_index = 0; + } } } }