Skip to content

Commit d2b7178

Browse files
committed
interrupts: remove unneeded cleanup
1 parent 9a49ce2 commit d2b7178

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

cores/arduino/WInterrupts.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,6 @@ void detachInterrupt(uint32_t pin)
174174
ISRlist[i] = ISRlist[i+1];
175175
ISRcallback[i] = ISRcallback[i+1];
176176
}
177-
// And remove the top item
178-
ISRlist[nints]=0;
179-
ISRcallback[nints]=NULL;
180177
nints--;
181178
}
182179

0 commit comments

Comments
 (0)