From 9c49b140fe4d7f15c5a6479744cb726acce0b10f Mon Sep 17 00:00:00 2001 From: epiHATR Date: Sat, 7 Dec 2024 23:41:25 +0700 Subject: [PATCH] Remove button interrupts --- RTL8720DN-BW16-SH1107-OLED/deauther.cpp | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/RTL8720DN-BW16-SH1107-OLED/deauther.cpp b/RTL8720DN-BW16-SH1107-OLED/deauther.cpp index 8fbf09b..542b578 100644 --- a/RTL8720DN-BW16-SH1107-OLED/deauther.cpp +++ b/RTL8720DN-BW16-SH1107-OLED/deauther.cpp @@ -121,23 +121,6 @@ void startDeauther() { } } -void handleSELButtonInterrupt() { - if (isDeauthenticating) { - isDeauthenticating = false; - buttonsString = "De-Authenticate"; - activeInput = 1; - } - isPageLoaded = false; -} - -void handleBACKButtonInterrupt() { - isDeauthenticating = false; - isMainMenu = true; - activeInput = 0; - isChangingSSID = false; - isPageLoaded = false; -} - void deautherSetup() { isDeauthenticating = false; activeInput = 0; @@ -150,10 +133,6 @@ void deautherSetup() { isPageLoaded = true; showDeautherScreen(); } - - attachInterrupt(digitalPinToInterrupt(BTN_SEL_PIN), handleSELButtonInterrupt, FALLING); - attachInterrupt(digitalPinToInterrupt(BTN_BACK_PIN), handleBACKButtonInterrupt, FALLING); - display.display(); } @@ -216,6 +195,9 @@ void deautherLoop() { isMainMenu = true; selectedMenu = -1; isPageLoaded = false; + isDeauthenticating = false; + activeInput = 0; + isChangingSSID = false; } if (!isPageLoaded) {