File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -46,9 +46,9 @@ void DataStore::begin() {
4646
4747#if defined(NRF52_PLATFORM) || defined(STM32_PLATFORM)
4848int _countLfsBlock (void *p, lfs_block_t block){
49- lfs_size_t *size = (lfs_size_t *) p;
50- *size += 1 ;
51- return 0 ;
49+ lfs_size_t *size = (lfs_size_t *) p;
50+ *size += 1 ;
51+ return 0 ;
5252}
5353
5454lfs_ssize_t _getLfsUsedBlockCount () {
@@ -68,8 +68,8 @@ uint32_t DataStore::getStorageUsedKb() const {
6868 return info.usedBytes / 1024 ;
6969#elif defined(NRF52_PLATFORM) || defined(STM32_PLATFORM)
7070 const lfs_config* config = InternalFS._getFS ()->cfg ;
71- int usedBlockCount = _getLfsUsedBlockCount ();
72- int usedBytes = config->block_size * usedBlockCount;
71+ int usedBlockCount = _getLfsUsedBlockCount ();
72+ int usedBytes = config->block_size * usedBlockCount;
7373 return usedBytes / 1024 ;
7474#else
7575 return 0 ;
@@ -86,7 +86,7 @@ uint32_t DataStore::getStorageTotalKb() const {
8686 return info.totalBytes / 1024 ;
8787#elif defined(NRF52_PLATFORM) || defined(STM32_PLATFORM)
8888 const lfs_config* config = InternalFS._getFS ()->cfg ;
89- int totalBytes = config->block_size * config->block_count ;
89+ int totalBytes = config->block_size * config->block_count ;
9090 return totalBytes / 1024 ;
9191#else
9292 return 0 ;
You can’t perform that action at this time.
0 commit comments