Fix up indentation

This commit is contained in:
DavePutz 2021-04-29 12:38:13 -05:00 committed by GitHub
parent cfac07c1cc
commit 1ec59cd534
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -141,16 +141,16 @@ void common_hal_pulseio_pulsein_interrupt() {
} }
// ignore pulses that are too short // ignore pulses that are too short
if (result <= MAX_PULSE && result > MIN_PULSE) { if (result <= MAX_PULSE && result > MIN_PULSE) {
self->buffer[buf_index] = (uint16_t) result; self->buffer[buf_index] = (uint16_t) result;
if (self->len < self->maxlen) { if (self->len < self->maxlen) {
self->len++; self->len++;
} }
if (buf_index < self->maxlen) { if (buf_index < self->maxlen) {
buf_index++; buf_index++;
} else { } else {
self->start = 0; self->start = 0;
buf_index = 0; buf_index = 0;
} }
} }
} }
} }