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

@ -17,7 +17,17 @@
* #define ESP_Mail_DEFAULT_FLASH_FS FFat //For ESP32 FFat * #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 * To use SD card file systems with different hardware interface