[beken-72xx] Fix detaching interrupt handler
This commit is contained in:
@@ -69,6 +69,8 @@ void detachInterrupt(pin_size_t interruptNumber) {
|
|||||||
return;
|
return;
|
||||||
if (!pinSupported(pin, PIN_IRQ))
|
if (!pinSupported(pin, PIN_IRQ))
|
||||||
return;
|
return;
|
||||||
|
irqHandlerList[interruptNumber] = NULL;
|
||||||
|
irqHandlerArgs[interruptNumber] = NULL;
|
||||||
gpio_int_disable(pin->gpio);
|
gpio_int_disable(pin->gpio);
|
||||||
pin->enabled &= ~PIN_IRQ;
|
pin->enabled &= ~PIN_IRQ;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user