From 16a0ab9cbdad464c23c30d336554593108ad8f6a Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Fri, 2 Aug 2024 07:42:52 -0500 Subject: [PATCH] Fix issue with calling removed legacy function --- src/OneButton.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OneButton.cpp b/src/OneButton.cpp index d58aeea..80fb5fd 100644 --- a/src/OneButton.cpp +++ b/src/OneButton.cpp @@ -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