diff --git a/libraries/SPI/src/SPI.h b/libraries/SPI/src/SPI.h index 41c040c75a..78bf3b6eab 100644 --- a/libraries/SPI/src/SPI.h +++ b/libraries/SPI/src/SPI.h @@ -236,11 +236,13 @@ class SPIClass { return &(_spi.handle); } - void attachSlaveInterrupt(uint8_t pin, callback_function_t callback) { + void attachSlaveInterrupt(uint8_t pin, callback_function_t callback) + { ::attachInterrupt(pin, callback, FALLING); } - void detachSlaveInterrupt(uint8_t pin) { + void detachSlaveInterrupt(uint8_t pin) + { ::detachInterrupt(pin); }