Fix
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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; }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user