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
#define FS_NO_GLOBALS
#include <FS.h>
#if defined(CONFIG_IDF_TARGET_ESP32)
#include "SPIFFS.h" // ESP32 only
#else
#ifndef SPIFFS
#include <LittleFS.h>
#define SPIFFS LittleFS
#endif
#endif
#include "SPIFFS.h" // ESP32 only
#define FONT_FS_AVAILABLE
#endif
////////////////////////////////////////////////////////////////////////////////////////
// Define the DC (TFT Data/Command or Register Select (RS))pin drive code
////////////////////////////////////////////////////////////////////////////////////////