Skip to content

Commit d803e12

Browse files
committed
In SPIFFSEditor.h Prevented a warning that SPIFFS has been deprecated on esp32
In WebHandlers.cpp A difference between SPIFFS and LITTLEFS of opendir() response in file.open() of FS vfs_api.cpp has been resolved.
1 parent c61f2d8 commit d803e12

File tree

12 files changed

+20
-7
lines changed

12 files changed

+20
-7
lines changed

.github/scripts/on-push.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if [ ! -z "$TRAVIS_BUILD_DIR" ]; then
77
export GITHUB_REPOSITORY="$TRAVIS_REPO_SLUG"
88
elif [ -z "$GITHUB_WORKSPACE" ]; then
99
export GITHUB_WORKSPACE="$PWD"
10-
export GITHUB_REPOSITORY="me-no-dev/ESPAsyncWebServer"
10+
export GITHUB_REPOSITORY="lorol/ESPAsyncWebServer"
1111
fi
1212

1313
TARGET_PLATFORM="$1"
@@ -34,8 +34,12 @@ if [ "$BUILD_PIO" -eq 0 ]; then
3434
cp -rf "$GITHUB_WORKSPACE" "$ARDUINO_USR_PATH/libraries/ESPAsyncWebServer"
3535
echo "Installing ArduinoJson ..."
3636
git clone https://github.com/bblanchon/ArduinoJson "$ARDUINO_USR_PATH/libraries/ArduinoJson" > /dev/null 2>&1
37+
echo "Installing DHT sensor library ..."
38+
git clone https://github.com/adafruit/DHT-sensor-library "$ARDUINO_USR_PATH/libraries/DHT-sensor-library" > /dev/null 2>&1
3739

3840
if [[ "$TARGET_PLATFORM" == "esp32" ]]; then
41+
echo "Installing LITTLEFS for ESP32 ..."
42+
git clone https://github.com/lorol/LITTLEFS "$ARDUINO_USR_PATH/libraries/LITTLEFS" > /dev/null 2>&1
3943
echo "Installing AsyncTCP ..."
4044
git clone https://github.com/me-no-dev/AsyncTCP "$ARDUINO_USR_PATH/libraries/AsyncTCP" > /dev/null 2>&1
4145
FQBN="espressif:esp32:esp32:PSRAM=enabled,PartitionScheme=huge_app"
0 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
Binary file not shown.

src/SPIFFSEditor.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ class SPIFFSEditor: public AsyncWebHandler {
1313
#ifdef ESP32
1414
SPIFFSEditor(const fs::FS& fs, const String& username=String(), const String& password=String());
1515
#else
16-
SPIFFSEditor(const String& username=String(), const String& password=String(), const fs::FS& fs=SPIFFS);
16+
//SPIFFSEditor(const String& username=String(), const String& password=String(), const fs::FS& fs=SPIFFS);
17+
SPIFFSEditor(const String& username, const String& password, const fs::FS& fs); // do not show warning that SPIFFS has been deprecated
1718
#endif
1819
virtual bool canHandle(AsyncWebServerRequest *request) override final;
1920
virtual void handleRequest(AsyncWebServerRequest *request) override final;

0 commit comments

Comments
 (0)