Skip to content

Commit

Permalink
Remove button interrupts
Browse files Browse the repository at this point in the history
  • Loading branch information
epiHATR committed Dec 7, 2024
1 parent 8cd8267 commit 9c49b14
Showing 1 changed file with 3 additions and 21 deletions.
24 changes: 3 additions & 21 deletions RTL8720DN-BW16-SH1107-OLED/deauther.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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();
}

Expand Down Expand Up @@ -216,6 +195,9 @@ void deautherLoop() {
isMainMenu = true;
selectedMenu = -1;
isPageLoaded = false;
isDeauthenticating = false;
activeInput = 0;
isChangingSSID = false;
}

if (!isPageLoaded) {
Expand Down

0 comments on commit 9c49b14

Please sign in to comment.