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