Skip to content

Commit

Permalink
Fix issue with calling removed legacy function
Browse files Browse the repository at this point in the history
  • Loading branch information
thebentern committed Aug 2, 2024
1 parent 44da41f commit 16a0ab9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OneButton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ OneButton::OneButton() {

// Initialize the OneButton library.
OneButton::OneButton(const int pin, const bool activeLow, const bool pullupActive) {
init(pin, pullupActive ? INPUT_PULLUP : INPUT, activeLow);
setup(pin, pullupActive ? INPUT_PULLUP : INPUT, activeLow);
} // OneButton


Expand Down

0 comments on commit 16a0ab9

Please sign in to comment.