This commit is contained in:
jpirnay
2026-03-19 11:26:28 +01:00
parent 477f3aa886
commit b44a47b9de
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -60,12 +60,12 @@ uint64_t HalStorage::sdTotalBytes() const {
return SDCard.sdTotalBytes(); return SDCard.sdTotalBytes();
} }
uint64_t HalStorage::sdUsedBytes() const { uint64_t HalStorage::sdUsedBytes() {
StorageLock lock; StorageLock lock;
return SDCard.sdUsedBytes(); return SDCard.sdUsedBytes();
} }
uint64_t HalStorage::sdFreeBytes() const { uint64_t HalStorage::sdFreeBytes() {
uint64_t total = sdTotalBytes(); uint64_t total = sdTotalBytes();
uint64_t used = sdUsedBytes(); uint64_t used = sdUsedBytes();
if (total <= used) return 0; if (total <= used) return 0;
+2 -2
View File
@@ -46,8 +46,8 @@ class HalStorage {
bool removeDir(const char* path); bool removeDir(const char* path);
uint64_t sdTotalBytes() const; uint64_t sdTotalBytes() const;
uint64_t sdUsedBytes() const; uint64_t sdUsedBytes();
uint64_t sdFreeBytes() const; uint64_t sdFreeBytes();
static HalStorage& getInstance() { return instance; } static HalStorage& getInstance() { return instance; }