mirror of
https://github.com/letscontrolit/ESPEasy.git
synced 2026-07-28 04:07:47 +00:00
[Build] fix build issue using fs:: namespace
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
#include <SD.h>
|
||||
|
||||
|
||||
void printDirectory(File dir, int numTabs)
|
||||
void printDirectory(fs::File dir, int numTabs)
|
||||
{
|
||||
while (true) {
|
||||
File entry = dir.openNextFile();
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
#include <FS.h>
|
||||
|
||||
void printDirectory(File dir, int numTabs);
|
||||
void printDirectory(fs::File dir, int numTabs);
|
||||
const __FlashStringHelper * Command_SD_LS(struct EventStruct *event, const char* Line);
|
||||
String Command_SD_Remove(struct EventStruct *event, const char* Line);
|
||||
|
||||
|
||||
@@ -86,9 +86,9 @@ private:
|
||||
RTC_cache_struct RTC_cache;
|
||||
std::vector<uint8_t>RTC_cache_data;
|
||||
#endif
|
||||
File fw;
|
||||
File fr;
|
||||
File fp;
|
||||
fs::File fw;
|
||||
fs::File fr;
|
||||
fs::File fp;
|
||||
size_t peekfilenr = 0;
|
||||
size_t peekreadpos = 0;
|
||||
|
||||
|
||||
@@ -1482,7 +1482,7 @@ bool getCacheFileCounters(uint16_t& lowest, uint16_t& highest, size_t& filesizeH
|
||||
highest = 0;
|
||||
filesizeHighest = 0;
|
||||
#ifdef ESP8266
|
||||
Dir dir = ESPEASY_FS.openDir(F("cache"));
|
||||
fs::Dir dir = ESPEASY_FS.openDir(F("cache"));
|
||||
|
||||
while (dir.next()) {
|
||||
String filename = dir.fileName();
|
||||
@@ -1501,8 +1501,8 @@ bool getCacheFileCounters(uint16_t& lowest, uint16_t& highest, size_t& filesizeH
|
||||
}
|
||||
#endif // ESP8266
|
||||
#ifdef ESP32
|
||||
File root = ESPEASY_FS.open(F("/"));
|
||||
File file = root.openNextFile();
|
||||
fs::File root = ESPEASY_FS.open(F("/"));
|
||||
fs::File file = root.openNextFile();
|
||||
|
||||
while (file)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user