diff --git a/lib/lib_div/lib_mail/src/ESP_Mail_FS.h b/lib/lib_div/lib_mail/src/ESP_Mail_FS.h index 7032c4ab8..973a33492 100644 --- a/lib/lib_div/lib_mail/src/ESP_Mail_FS.h +++ b/lib/lib_div/lib_mail/src/ESP_Mail_FS.h @@ -4,20 +4,30 @@ /** * To use other flash file systems - * + * * LittleFS File system - * + * * #include * #define ESP_Mail_DEFAULT_FLASH_FS LittleFS //For ESP8266 LitteFS - * - * + * + * * FFat File system - * + * * #include * #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 + #define ESP_Mail_DEFAULT_FLASH_FS LittleFS +#endif + +#ifdef ESP32 + #include + #define ESP_Mail_DEFAULT_FLASH_FS LITTLEFS +#endif /** * To use SD card file systems with different hardware interface