mirror of
https://github.com/SpacehuhnTech/esp8266_deauther.git
synced 2025-12-22 15:16:47 -08:00
Added ifdef for PROGMEM files in wifi class
This commit is contained in:
@@ -81,7 +81,7 @@ class DisplayUI {
|
||||
|
||||
const uint8_t maxLen = 18;
|
||||
const uint8_t lineHeight = 12;
|
||||
const uint8_t scrollSpeed = 500;
|
||||
const uint8_t scrollSpeed = 500; // time interval in ms
|
||||
const uint8_t buttonDelay = 250;
|
||||
const uint8_t drawInterval = 100; // 100ms = 10 FPS
|
||||
const uint16_t screenIntroTime = 2500;
|
||||
|
||||
@@ -14,6 +14,7 @@ extern "C" {
|
||||
#if ARDUINOJSON_VERSION_MAJOR != 5
|
||||
// The software was build using ArduinoJson v5.x
|
||||
// version 6 is still in beta at the time of writing
|
||||
// go to tools -> manage libraries, search for ArduinoJSON and install the latest version 5
|
||||
#error Please upgrade/downgrade ArduinoJSON library to version 5!
|
||||
#endif
|
||||
|
||||
|
||||
@@ -228,7 +228,7 @@ void startAP(String path, String ssid, String password, uint8_t ch, bool hidden,
|
||||
|
||||
// ================================================================
|
||||
// post here the output of the webConverter.py
|
||||
|
||||
#ifdef USE_PROGMEM_WEB_FILES
|
||||
if (!settings.getWebSpiffs()) {
|
||||
server.on(String(SLASH).c_str(), HTTP_GET, []() {
|
||||
sendProgmem(indexhtml, sizeof(indexhtml), W_HTML);
|
||||
@@ -310,7 +310,7 @@ void startAP(String path, String ssid, String password, uint8_t ch, bool hidden,
|
||||
handleFileRead(String(F("/web/lang/")) + settings.getLang() + String(F(".lang")));
|
||||
}
|
||||
});
|
||||
|
||||
#endif
|
||||
// ================================================================
|
||||
|
||||
server.on(String(F("/run")).c_str(), HTTP_GET, []() {
|
||||
|
||||
Reference in New Issue
Block a user