aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2019-02-06 11:30:20 +0200
committerShlomo Hecht <shlomo@twine-s.com>2019-02-06 11:30:20 +0200
commita73a6f639445640123705f3e68e6a7ecd654ef41 (patch)
tree5953b5fa129100d2e7b3354f4d7926585b8fd209 /Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
parent34c37c76a69d7d28ac678d17f6dfeabe12216c16 (diff)
downloadTango-a73a6f639445640123705f3e68e6a7ecd654ef41.tar.gz
Tango-a73a6f639445640123705f3e68e6a7ecd654ef41.zip
flash programming improved, working
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;