Skip to content

Commit 1ec59cd

Browse files
authored
Fix up indentation
1 parent cfac07c commit 1ec59cd

File tree

1 file changed

+9
-9
lines changed
  • ports/raspberrypi/common-hal/pulseio

1 file changed

+9
-9
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -141,16 +141,16 @@ void common_hal_pulseio_pulsein_interrupt() {
141141
}
142142
// ignore pulses that are too short
143143
if (result <= MAX_PULSE && result > MIN_PULSE) {
144-
self->buffer[buf_index] = (uint16_t) result;
145-
if (self->len < self->maxlen) {
146-
self->len++;
144+
self->buffer[buf_index] = (uint16_t) result;
145+
if (self->len < self->maxlen) {
146+
self->len++;
147147
}
148-
if (buf_index < self->maxlen) {
149-
buf_index++;
150-
} else {
151-
self->start = 0;
152-
buf_index = 0;
153-
}
148+
if (buf_index < self->maxlen) {
149+
buf_index++;
150+
} else {
151+
self->start = 0;
152+
buf_index = 0;
153+
}
154154
}
155155
}
156156
}

0 commit comments

Comments
 (0)