Skip to content

Commit 16a0ab9

Browse files
committed
Fix issue with calling removed legacy function
1 parent 44da41f commit 16a0ab9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/OneButton.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ OneButton::OneButton() {
3030

3131
// Initialize the OneButton library.
3232
OneButton::OneButton(const int pin, const bool activeLow, const bool pullupActive) {
33-
init(pin, pullupActive ? INPUT_PULLUP : INPUT, activeLow);
33+
setup(pin, pullupActive ? INPUT_PULLUP : INPUT, activeLow);
3434
} // OneButton
3535

3636

0 commit comments

Comments
 (0)