mirror of
https://github.com/SpacehuhnTech/esp8266_deauther.git
synced 2025-12-22 07:10:51 -08:00
Fixed some compiler warnings
This commit is contained in:
@@ -95,13 +95,12 @@ class DisplayUI {
|
||||
uint32_t startTime = 0; // when the screen was enabled
|
||||
bool enabled = false; // display enabled
|
||||
|
||||
// create buttons with default values
|
||||
Button buttonUp = {false, 0, false, false, 0, NULL, NULL, NULL};
|
||||
Button buttonDown = {false, 0, false, false, 0, NULL, NULL, NULL};
|
||||
Button buttonLeft = {false, 0, false, false, 0, NULL, NULL, NULL};
|
||||
Button buttonRight = {false, 0, false, false, 0, NULL, NULL, NULL};
|
||||
Button buttonA = {false, 0, false, false, 0, NULL, NULL, NULL};
|
||||
Button buttonB = {false, 0, false, false, 0, NULL, NULL, NULL};
|
||||
Button buttonUp;
|
||||
Button buttonDown;
|
||||
Button buttonLeft;
|
||||
Button buttonRight;
|
||||
Button buttonA;
|
||||
Button buttonB;
|
||||
|
||||
// selected attack modes
|
||||
bool beaconSelected = false;
|
||||
|
||||
@@ -324,6 +324,8 @@ bool progmemToSpiffs(const char* adr, int len, String path) {
|
||||
f.close();
|
||||
|
||||
prntln(SETUP_OK);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool readFile(String path, String &buf) {
|
||||
@@ -457,6 +459,8 @@ bool removeLines(String path, int lineFrom, int lineTo){
|
||||
f2.close();
|
||||
SPIFFS.remove(path);
|
||||
SPIFFS.rename(tmpPath, path);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool replaceLine(String path, int line, String &buf){
|
||||
@@ -487,6 +491,8 @@ bool replaceLine(String path, int line, String &buf){
|
||||
f2.close();
|
||||
SPIFFS.remove(path);
|
||||
SPIFFS.rename(tmpPath, path);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
JsonVariant parseJSONFile(String path, DynamicJsonBuffer &jsonBuffer) {
|
||||
|
||||
Reference in New Issue
Block a user