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 f0e24bd commit f37ce1cCopy full SHA for f37ce1c
atmel-samd/common-hal/pulseio/PulseIn.c
@@ -48,6 +48,9 @@ static uint16_t last_us[EIC_NUMBER_OF_INTERRUPTS];
48
49
void pulsein_reset(void) {
50
for (int i = 0; i < EIC_NUMBER_OF_INTERRUPTS; i++) {
51
+ if (active_pulseins[i] != NULL) {
52
+ extint_chan_disable_callback(i, EXTINT_CALLBACK_TYPE_DETECT);
53
+ }
54
active_pulseins[i] = NULL;
55
last_ms[i] = 0;
56
last_us[i] = 0;
0 commit comments