Skip to content

Commit 3f1755e

Browse files
committed
Fixed interrupts on port B not being cleared
1 parent 344654b commit 3f1755e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Adafruit_MCP23XXX.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ uint8_t Adafruit_MCP23XXX::getLastInterruptPin() {
235235
// clear if found
236236
if (intpin != 255) {
237237
Adafruit_BusIO_Register INTCAP(i2c_dev, spi_dev, MCP23XXX_SPIREG,
238-
getRegister(MCP23XXX_INTCAP));
238+
getRegister(MCP23XXX_INTCAP, MCP_PORT(intpin)));
239239
INTCAP.read();
240240
}
241241

0 commit comments

Comments
 (0)