Skip to content

Commit 6570c48

Browse files
Fix deadlock in attachInterruptParam (#953)
Thanks to @imwoo90 comment in #878 (comment)
1 parent 008c4d6 commit 6570c48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/rp2040/wiring_private.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ void attachInterruptParam(pin_size_t pin, voidFuncPtrParam callback, PinStatus m
135135
default: return; // ERROR
136136
}
137137
noInterrupts();
138-
detachInterrupt(pin);
138+
_detachInterruptInternal(pin);
139139
CBInfo cb(callback, param);
140140
_map.insert({pin, cb});
141141
gpio_set_irq_enabled_with_callback(pin, events, true, _gpioInterruptDispatcher);

0 commit comments

Comments
 (0)