We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c014ac3 commit 2eca4eeCopy full SHA for 2eca4ee
ports/atmel-samd/common-hal/pulseio/PulseIn.c
@@ -115,11 +115,11 @@ void pulsein_interrupt_handler(uint8_t channel) {
115
duration = total_diff;
116
}
117
//check if the input is taking too long, 15 timer overflows is approx 1 second
118
- if (current_overflow - start_overflow > 15) {
119
- self->errored_too_fast = true;
120
- common_hal_pulseio_pulsein_pause(self);
+ if (current_overflow - start_overflow > 15) {
+ self->errored_too_fast = true;
+ common_hal_pulseio_pulsein_pause(self);
121
common_hal_mcu_enable_interrupts();
122
- return;
+ return;
123
124
125
uint16_t i = (self->start + self->len) % self->maxlen;
0 commit comments