Added ifdef for PROGMEM files in wifi class

This commit is contained in:
Stefan Kremser
2018-10-17 13:03:50 +02:00
parent 2f4a5b92ed
commit 87e98babbc
3 changed files with 404 additions and 403 deletions

View File

@@ -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;

View File

@@ -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

View File

@@ -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, []() {