Skip to content

Commit 4b1be4b

Browse files
callback with pin_nr
1 parent 2d3f59a commit 4b1be4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Button_MCP23017/Button_MCP23017.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ void Button_MCP23017::read() {
3939

4040
// only toggle if the new button state is HIGH
4141
if (_currentBtnState == HIGH) {
42-
_callback.callback();
42+
_callback.callbackIntArg(_btnPin);
4343
}
4444
}
4545
}

0 commit comments

Comments
 (0)