Skip to content

Commit

Permalink
Supports LittleFS_esp32 legacy library
Browse files Browse the repository at this point in the history
  • Loading branch information
Hieromon committed Mar 2, 2022
1 parent ae41971 commit 8724380
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ Full documentation is available on https://Hieromon.github.io/AutoConnect, some

## Change log

### [1.3.4] Feb. 25, 2022
### [1.3.4] Mar. 02, 2022
- Supports [LittleFS_esp32](https://github.com/lorol/LITTLEFS) legacy library with ESP32 Arduino core 1.0.6 or less.
- Added enablement of credentials removal function with Open SSIDs menu. (Discussions #433)
- Fixed AutoConnectOTA crashing if there is no OTA partition.
- Fixed AutoConnectUpdate crashing if there is no OTA partition.
Expand Down
3 changes: 2 additions & 1 deletion mkdocs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
### [1.3.4] Feb. 25, 2022
### [1.3.4] Mar. 02, 2022

#### Enhancements

- Supports [LittleFS_esp32](https://github.com/lorol/LITTLEFS) legacy library with ESP32 Arduino core 1.0.6 or less.
- Added enablement of credentials removal function with Open SSIDs menu.
- Migrate the CI platform to GitHub actions.

Expand Down
13 changes: 11 additions & 2 deletions src/AutoConnectFS.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 8724380

Please sign in to comment.