Skip to content

Commit

Permalink
wrap wiringPiISRStop() in driver API (#968)
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 authored Apr 1, 2024
1 parent eade71f commit 5d645ae
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions utility/wiringPi/interrupt.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#include <wiringPi.h>

#define attachInterrupt wiringPiISR

// wiringPi has no detachInterrupt() implementation. Therefor, we will not define it here.
// Invoking detachInterrupt() with this wiringPi driver/wrapper should trigger compilation errors
#define detachInterrupt wiringPiISRStop

#endif // RF24_UTILITY_WIRINGPI_INTERRUPT_H__

0 comments on commit 5d645ae

Please sign in to comment.