Fix up indentation
This commit is contained in:
parent
cfac07c1cc
commit
1ec59cd534
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user