aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2019-02-07 21:39:53 +0200
committerShlomo Hecht <shlomo@twine-s.com>2019-02-07 21:39:53 +0200
commit72165197a9c2787f9441a5576c9a182eb839f904 (patch)
tree47cb70a2757e93d172acea58dd38c3c8ebc186a0 /Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
parentf34ca426c8d6c67b44c010496f4d9308d9924bc1 (diff)
parent85be4860a445cd2cb5dcc01a582fbea5fe21c200 (diff)
downloadTango-72165197a9c2787f9441a5576c9a182eb839f904.tar.gz
Tango-72165197a9c2787f9441a5576c9a182eb839f904.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/_git/Tango
Diffstat (limited to 'Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c')
-rw-r--r--Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c b/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
index 11fbf86c4..d39c335ef 100644
--- a/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
+++ b/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
@@ -509,9 +509,9 @@ uint32_t GetStorageInfoRequestFunc(MessageContainer* requestContainer)
tot_sect = (fs->n_fatent - 2) * fs->csize;
fre_sect = fre_clust * fs->csize;
response.has_capacity = true;
- response.capacity = tot_sect/2;
+ response.capacity = tot_sect/2*1024;
response.has_freespace = true;
- response.freespace = fre_sect/2;
+ response.freespace = fre_sect/2*1024;
response.root = "/";
}
@@ -588,7 +588,6 @@ uint32_t GetFilesRequestFunc(MessageContainer* requestContainer)
FilesInfo[i] = &Data[i];
Data[i].has_attribute = true;
Data[i].attribute = fno[i]->fattrib;
- Data[i].has_length = true;
Data[i].name = fno[i]->fname;
Data[i].has_length = true;
Data[i].length = fno[i]->fsize;