Skip to content

Commit 029e1d4

Browse files
committed
Interrupts: remove C prototype and keep only C++ prototypes
attachInterrupt() C prototypes was not usable from C source file (inheritace of former pure C implementation), and causes ambiguity when used with lambda function as callback Fixes #1601 Signed-off-by: Alexandre Bourdiol <[email protected]>
1 parent b192e50 commit 029e1d4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

cores/arduino/WInterrupts.h

+1-5
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,7 @@
2626

2727
typedef std::function<void(void)> callback_function_t;
2828
void attachInterrupt(uint32_t pin, callback_function_t callback, uint32_t mode);
29-
29+
void detachInterrupt(uint32_t pin);
3030
#endif
3131

32-
void attachInterrupt(uint32_t pin, void (*callback)(void), uint32_t mode);
33-
34-
void detachInterrupt(uint32_t pin);
35-
3632
#endif /* _WIRING_INTERRUPTS_ */

0 commit comments

Comments
 (0)