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 drawTime = 0; // last time a frame was drawn
|
||||||
uint32_t startTime = 0; // when the screen was enabled
|
uint32_t startTime = 0; // when the screen was enabled
|
||||||
bool enabled = false; // display enabled
|
bool enabled = false; // display enabled
|
||||||
|
|
||||||
// create buttons with default values
|
Button buttonUp;
|
||||||
Button buttonUp = {false, 0, false, false, 0, NULL, NULL, NULL};
|
Button buttonDown;
|
||||||
Button buttonDown = {false, 0, false, false, 0, NULL, NULL, NULL};
|
Button buttonLeft;
|
||||||
Button buttonLeft = {false, 0, false, false, 0, NULL, NULL, NULL};
|
Button buttonRight;
|
||||||
Button buttonRight = {false, 0, false, false, 0, NULL, NULL, NULL};
|
Button buttonA;
|
||||||
Button buttonA = {false, 0, false, false, 0, NULL, NULL, NULL};
|
Button buttonB;
|
||||||
Button buttonB = {false, 0, false, false, 0, NULL, NULL, NULL};
|
|
||||||
|
|
||||||
// selected attack modes
|
// selected attack modes
|
||||||
bool beaconSelected = false;
|
bool beaconSelected = false;
|
||||||
@@ -613,4 +612,4 @@ const uint8_t DejaVu_Sans_Mono_12[] PROGMEM = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -324,6 +324,8 @@ bool progmemToSpiffs(const char* adr, int len, String path) {
|
|||||||
f.close();
|
f.close();
|
||||||
|
|
||||||
prntln(SETUP_OK);
|
prntln(SETUP_OK);
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool readFile(String path, String &buf) {
|
bool readFile(String path, String &buf) {
|
||||||
@@ -457,6 +459,8 @@ bool removeLines(String path, int lineFrom, int lineTo){
|
|||||||
f2.close();
|
f2.close();
|
||||||
SPIFFS.remove(path);
|
SPIFFS.remove(path);
|
||||||
SPIFFS.rename(tmpPath, path);
|
SPIFFS.rename(tmpPath, path);
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool replaceLine(String path, int line, String &buf){
|
bool replaceLine(String path, int line, String &buf){
|
||||||
@@ -487,6 +491,8 @@ bool replaceLine(String path, int line, String &buf){
|
|||||||
f2.close();
|
f2.close();
|
||||||
SPIFFS.remove(path);
|
SPIFFS.remove(path);
|
||||||
SPIFFS.rename(tmpPath, path);
|
SPIFFS.rename(tmpPath, path);
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
JsonVariant parseJSONFile(String path, DynamicJsonBuffer &jsonBuffer) {
|
JsonVariant parseJSONFile(String path, DynamicJsonBuffer &jsonBuffer) {
|
||||||
@@ -587,4 +593,4 @@ String formatBytes(size_t bytes) {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user