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:
@@ -94,14 +94,13 @@ class DisplayUI {
|
||||
uint32_t drawTime = 0; // last time a frame was drawn
|
||||
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;
|
||||
@@ -613,4 +612,4 @@ const uint8_t DejaVu_Sans_Mono_12[] PROGMEM = {
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -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) {
|
||||
@@ -587,4 +593,4 @@ String formatBytes(size_t bytes) {
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user