Use LITTLEFS for ESP32 too

This commit is contained in:
Jason2866 2021-06-03 11:53:44 +02:00
parent acd545f1bf
commit 4a0e6ae2bf
1 changed files with 17 additions and 7 deletions

View File

@ -4,20 +4,30 @@
/**
* To use other flash file systems
*
*
* LittleFS File system
*
*
* #include <LittleFS.h>
* #define ESP_Mail_DEFAULT_FLASH_FS LittleFS //For ESP8266 LitteFS
*
*
*
*
* FFat File system
*
*
* #include <FFat.h>
* #define ESP_Mail_DEFAULT_FLASH_FS FFat //For ESP32 FFat
*
*
*/
#define ESP_Mail_DEFAULT_FLASH_FS SPIFFS
// #define ESP_Mail_DEFAULT_FLASH_FS SPIFFS
#ifdef ESP8266
#include <LittleFS.h>
#define ESP_Mail_DEFAULT_FLASH_FS LittleFS
#endif
#ifdef ESP32
#include <LITTLEFS.h>
#define ESP_Mail_DEFAULT_FLASH_FS LITTLEFS
#endif
/**
* To use SD card file systems with different hardware interface