mirror of
https://github.com/SpacehuhnTech/esp8266_deauther.git
synced 2025-12-22 23:26:49 -08:00
Fixed ButtonB
This commit is contained in:
@@ -261,6 +261,10 @@ void DisplayUI::setup() {
|
||||
buttonB.pushed = true;
|
||||
buttonB.time = currentTime;
|
||||
scrollCounter = 0;
|
||||
};
|
||||
|
||||
buttonB.release = [this]() {
|
||||
if (!buttonB.pushed) return;
|
||||
|
||||
switch(mode){
|
||||
case SCREEN_MODE_MENU:
|
||||
@@ -272,10 +276,7 @@ void DisplayUI::setup() {
|
||||
mode = SCREEN_MODE_MENU;
|
||||
break;
|
||||
}
|
||||
};
|
||||
|
||||
buttonB.release = [this]() {
|
||||
if (!buttonB.pushed) return;
|
||||
|
||||
buttonB.pushed = false;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user