mirror of
https://github.com/SpacehuhnTech/esp8266_deauther.git
synced 2025-12-22 23:26:49 -08:00
Cleaned up display class & fixed timeout
This commit is contained in:
@@ -1137,10 +1137,10 @@ void CLI::runCommand(String input) {
|
|||||||
// ===== SCREEN ===== //
|
// ===== SCREEN ===== //
|
||||||
// screen mode <menu/packetmonitor/buttontest/loading>
|
// screen mode <menu/packetmonitor/buttontest/loading>
|
||||||
else if (eqlsCMD(0, CLI_SCREEN) && eqlsCMD(1, CLI_MODE)) {
|
else if (eqlsCMD(0, CLI_SCREEN) && eqlsCMD(1, CLI_MODE)) {
|
||||||
if (eqlsCMD(2, CLI_MODE_BUTTONTEST)) displayUI.mode = SCREEN_MODE_BUTTON_TEST;
|
if (eqlsCMD(2, CLI_MODE_BUTTONTEST)) displayUI.mode = displayUI.DISPLAY_MODE::BUTTON_TEST;
|
||||||
else if (eqlsCMD(2, CLI_MODE_PACKETMONITOR)) displayUI.mode = SCREEN_MODE_PACKETMONITOR;
|
else if (eqlsCMD(2, CLI_MODE_PACKETMONITOR)) displayUI.mode = displayUI.DISPLAY_MODE::PACKETMONITOR;
|
||||||
else if (eqlsCMD(2, CLI_MODE_LOADINGSCREEN)) displayUI.mode = SCREEN_MODE_LOADSCAN;
|
else if (eqlsCMD(2, CLI_MODE_LOADINGSCREEN)) displayUI.mode = displayUI.DISPLAY_MODE::LOADSCAN;
|
||||||
else if (eqlsCMD(2, CLI_MODE_MENU)) displayUI.mode = SCREEN_MODE_MENU;
|
else if (eqlsCMD(2, CLI_MODE_MENU)) displayUI.mode = displayUI.DISPLAY_MODE::MENU;
|
||||||
else parameterError(list->get(2));
|
else parameterError(list->get(2));
|
||||||
prntln(CLI_CHANGED_SCREEN);
|
prntln(CLI_CHANGED_SCREEN);
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -91,7 +91,7 @@ void setup() {
|
|||||||
// start display
|
// start display
|
||||||
if (settings.getDisplayInterface()) {
|
if (settings.getDisplayInterface()) {
|
||||||
displayUI.setup();
|
displayUI.setup();
|
||||||
displayUI.mode = SCREEN_MODE_INTRO;
|
displayUI.mode = displayUI.DISPLAY_MODE::INTRO;
|
||||||
}
|
}
|
||||||
|
|
||||||
// copy web files to SPIFFS
|
// copy web files to SPIFFS
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
#ifndef language_h
|
#ifndef language_h
|
||||||
#define language_h
|
#define language_h
|
||||||
|
|
||||||
|
#include "Arduino.h"
|
||||||
|
|
||||||
extern String str(const char* ptr);
|
extern String str(const char* ptr);
|
||||||
extern String keyword(const char* keywordPtr);
|
extern String keyword(const char* keywordPtr);
|
||||||
extern bool eqls(const char* str, const char* keywordPtr);
|
extern bool eqls(const char* str, const char* keywordPtr);
|
||||||
|
|||||||
Reference in New Issue
Block a user