-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Supports LittleFS_esp32 legacy library
- Loading branch information
Showing
3 changed files
with
15 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
* Predefined file system applied for AutoConnect usage. | ||
* @file AutoConnectFS.h | ||
* @author [email protected] | ||
* @version 1.3.1 | ||
* @date 2021-10-03 | ||
* @version 1.3.4 | ||
* @date 2022-03-02 | ||
* @copyright MIT license. | ||
*/ | ||
|
||
|
@@ -58,6 +58,15 @@ extern "C" { | |
#include <esp_littlefs.h> | ||
} | ||
#define AUTOCONNECT_APPLIED_FILECLASS fs::LittleFSFS | ||
|
||
// With ESP32 platform core version less 2.0, reverts the LittleFS class and | ||
// the exported instance to the ordinary LittleFS_esp32 library owns. | ||
#if !defined(ESP_ARDUINO_VERSION_MAJOR) && ESP_ARDUINO_VERSION_MAJOR<2 | ||
#undef AUTOCONNECT_APPLIED_FILESYSTEM | ||
#define AUTOCONNECT_APPLIED_FILESYSTEM LITTLEFS | ||
#undef AUTOCONNECT_APPLIED_FILECLASS | ||
#define AUTOCONNECT_APPLIED_FILECLASS fs::LITTLEFSFS | ||
#endif | ||
#endif | ||
#endif | ||
|
||
|