We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bdf0608 commit 2facbf6Copy full SHA for 2facbf6
libraries/SPI/SPI.cpp
@@ -105,7 +105,7 @@ void SPIClass::usingInterrupt(int interruptNumber)
105
else
106
{
107
interruptMode |= SPI_IMODE_EXTINT;
108
- interruptMask |= (1 << interruptNumber);
+ interruptMask |= (1 << g_APinDescription[interruptNumber].ulExtInt);
109
}
110
111
if (irestore)
@@ -123,7 +123,7 @@ void SPIClass::notUsingInterrupt(int interruptNumber)
123
uint8_t irestore = interruptsStatus();
124
noInterrupts();
125
126
- interruptMask &= ~(1 << interruptNumber);
+ interruptMask &= ~(1 << g_APinDescription[interruptNumber].ulExtInt);
127
128
if (interruptMask == 0)
129
interruptMode = SPI_IMODE_NONE;
0 commit comments