Skip to content

Commit

Permalink
Merge pull request #148 from thebentern/master
Browse files Browse the repository at this point in the history
Fix issue with calling removed legacy function.
Thanks.
Will update version and publish asap.
  • Loading branch information
mathertel authored Aug 2, 2024
2 parents 44da41f + 16a0ab9 commit c044968
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 c044968

Please sign in to comment.