Skip to content

Commit

Permalink
- Improved FS include
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushsharma82 committed Aug 30, 2023
1 parent 8c656e2 commit 19d2e46
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/ElegantOTA.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ _____ _ _ ___ _____ _
#include "stdlib_noniso.h"
#include "elop.h"

#ifndef ELEGANTOTA_USE_SPIFFS
#define ELEGANTOTA_USE_SPIFFS 0
#endif

#ifndef ELEGANTOTA_USE_ASYNC_WEBSERVER
#define ELEGANTOTA_USE_ASYNC_WEBSERVER 0
#endif
Expand All @@ -42,7 +46,11 @@ _____ _ _ ___ _____ _
#endif

#if defined(ESP8266)
#include "FS.h"
#if ELEGANTOTA_USE_SPIFFS == 1
#include "FS.h"
#else
#include "LittleFS.h"
#endif
#include "Updater.h"
#include "StreamString.h"
#if ELEGANTOTA_USE_ASYNC_WEBSERVER == 1
Expand All @@ -57,7 +65,11 @@ _____ _ _ ___ _____ _
#endif
#define HARDWARE "ESP8266"
#elif defined(ESP32)
#include "SPIFFS.h"
#if ELEGANTOTA_USE_SPIFFS == 1
#include "SPIFFS.h"
#else
#include "LittleFS.h"
#endif
#include "Update.h"
#include "StreamString.h"
#if ELEGANTOTA_USE_ASYNC_WEBSERVER == 1
Expand Down

0 comments on commit 19d2e46

Please sign in to comment.