Make ESP32 family handle SPIFFS and LittleFS consistently

This commit is contained in:
Bodmer
2022-11-29 21:55:53 +00:00
parent 0fd239c751
commit 31a5ccd02e

View File

@@ -135,17 +135,11 @@ SPI3_HOST = 2
// Call up the SPIFFS (SPI FLASH Filing System) for the anti-aliased fonts // Call up the SPIFFS (SPI FLASH Filing System) for the anti-aliased fonts
#define FS_NO_GLOBALS #define FS_NO_GLOBALS
#include <FS.h> #include <FS.h>
#if defined(CONFIG_IDF_TARGET_ESP32) #include "SPIFFS.h" // ESP32 only
#include "SPIFFS.h" // ESP32 only
#else
#ifndef SPIFFS
#include <LittleFS.h>
#define SPIFFS LittleFS
#endif
#endif
#define FONT_FS_AVAILABLE #define FONT_FS_AVAILABLE
#endif #endif
//////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////
// Define the DC (TFT Data/Command or Register Select (RS))pin drive code // Define the DC (TFT Data/Command or Register Select (RS))pin drive code
//////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////