From bb9c6700614b30035611197d6ade9a4b7941400a Mon Sep 17 00:00:00 2001 From: Luc <8822552+luc-github@users.noreply.github.com> Date: Sun, 11 Feb 2024 08:21:32 +0800 Subject: [PATCH] Fix typo in [ESP780] for filesystem usage always reporting / instead of target one --- esp3d/src/core/commands/ESP780.cpp | 6 +++--- esp3d/src/include/esp3d_sanity.h | 2 +- esp3d/src/include/esp3d_version.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/esp3d/src/core/commands/ESP780.cpp b/esp3d/src/core/commands/ESP780.cpp index a5273a63..f0307a0e 100644 --- a/esp3d/src/core/commands/ESP780.cpp +++ b/esp3d/src/core/commands/ESP780.cpp @@ -80,9 +80,9 @@ void ESP3DCommands::ESP780(int cmd_params_pos, ESP3DMessage* msg) { if (!hasError) { uint nbDirs = 0; uint nbFiles = 0; - size_t totalSpace = ESP_GBFS::totalBytes(); - size_t usedSpace = ESP_GBFS::usedBytes(); - size_t freeSpace = ESP_GBFS::freeBytes(); + size_t totalSpace = ESP_GBFS::totalBytes(fsType); + size_t usedSpace = ESP_GBFS::usedBytes(fsType); + size_t freeSpace = ESP_GBFS::freeBytes(fsType); ESP_GBFile sub; sub = f.openNextFile(); diff --git a/esp3d/src/include/esp3d_sanity.h b/esp3d/src/include/esp3d_sanity.h index 900759ca..586a0287 100644 --- a/esp3d/src/include/esp3d_sanity.h +++ b/esp3d/src/include/esp3d_sanity.h @@ -194,5 +194,5 @@ #error SD_UPDATE_FEATURE is not available because SD_DEVICE is not enabled #endif -#endif // ESP_NO_SANITY_CHECK +#endif // SANITY_CHECK diff --git a/esp3d/src/include/esp3d_version.h b/esp3d/src/include/esp3d_version.h index c0a82e35..8f23eda4 100644 --- a/esp3d/src/include/esp3d_version.h +++ b/esp3d/src/include/esp3d_version.h @@ -22,7 +22,7 @@ #define _VERSION_ESP3D_H // version and sources location -#define FW_VERSION "3.0.0.a228" +#define FW_VERSION "3.0.0.a229" #define REPOSITORY "https://github.com/luc-github/ESP3D/tree/3.0" #endif //_VERSION_ESP3D_H