diff --git a/library.properties b/library.properties index b5e651f..0cbdf5f 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=ESP32 File Manager for Generation Klick ESPFMfGK -version=2.0.12 +version=2.0.13 author=Holger Lembke maintainer=Holger Lembke sentence=Manage your ES32 file system content with a simple web based interface diff --git a/src/ESPFMfGK.cpp b/src/ESPFMfGK.cpp index 224f0b4..d6633b3 100644 --- a/src/ESPFMfGK.cpp +++ b/src/ESPFMfGK.cpp @@ -987,7 +987,7 @@ void ESPFMfGK::fileManagerJobber(void) } int fsi = getFileSystemIndex(); - if (checkFileFlags(*fsinfo[fsi].filesystem, newfn, flagCanRename | flagIsValidTargetFilename) & flagCanRename == 0) + if ((checkFileFlags(*fsinfo[fsi].filesystem, newfn, flagCanRename | flagIsValidTargetFilename) & flagCanRename) == 0) { Serial.println("Ren: No access."); Illegal404(); @@ -1376,10 +1376,12 @@ String ESPFMfGK::DeUmlautFilename(String fn) // total/used are not exposed in FS::FS. Who knows why. uint64_t ESPFMfGK::totalBytes(fs::FS *fs) { +#ifdef SOC_SDMMC_HOST_SUPPORTED if (fs == &SD_MMC) { return SD_MMC.totalBytes(); } +#endif else if (fs == &SD) { return SD.totalBytes(); @@ -1401,10 +1403,12 @@ uint64_t ESPFMfGK::totalBytes(fs::FS *fs) //***************************************************************************************************** uint64_t ESPFMfGK::usedBytes(fs::FS *fs) { +#ifdef SOC_SDMMC_HOST_SUPPORTED if (fs == &SD_MMC) { return SD_MMC.usedBytes(); } +#endif else if (fs == &SD) { return SD.usedBytes(); diff --git a/src/ESPFMfGK.h b/src/ESPFMfGK.h index 6765fbe..161b2ba 100644 --- a/src/ESPFMfGK.h +++ b/src/ESPFMfGK.h @@ -31,6 +31,11 @@ tab im editor zum echten tab umwandeln. Changes + V2.0.7 + + Fix: another checkFileFlags() error... + + add "SOC_SDMMC_HOST_SUPPORTED" for devices without this support + + Arduino-release V2.0.13 + V2.0.6 + Fix: https://github.com/holgerlembke/ESPFMfGK/issues/13 + Arduino-release V2.0.12