diff options
| author | Shlomo Hecht <shlomo@twine-s.com> | 2019-01-29 18:33:11 +0200 |
|---|---|---|
| committer | Shlomo Hecht <shlomo@twine-s.com> | 2019-01-29 18:33:11 +0200 |
| commit | 99554aaefd61f29be38669d46c7e4a573bec311f (patch) | |
| tree | 16bf2b5582424c961f87f4dc543f36f2167e6d08 /Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c | |
| parent | 4b7e196fe51e5a93b3c8090bbb43d05e3e6fd370 (diff) | |
| download | Tango-99554aaefd61f29be38669d46c7e4a573bec311f.tar.gz Tango-99554aaefd61f29be38669d46c7e4a573bec311f.zip | |
Version 1.3.5.3: IDS handling, control track and fixing, and other changes.
Diffstat (limited to 'Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c')
| -rw-r--r-- | Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c b/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c index 49f65a764..bba8a61be 100644 --- a/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c +++ b/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c @@ -296,7 +296,7 @@ uint32_t DeleteRequestFunc(MessageContainer* requestContainer) DIR dir; FILINFO* fno = 0; - int NumOfFiles = 0; + //int NumOfFiles = 0; FRESULT Fresult = FR_OK; Fresult |= f_opendir(&dir, g_cCwdBuf); @@ -701,9 +701,6 @@ FRESULT FileOpen(char *path, uint32_t *Size, FIL *FileHandle) { FRESULT Fresult = FR_OK; FILINFO* fno = 0; - void* buffer = NULL; - uint32_t Bytes = 0; - uint32_t status = 0; fno = my_malloc(sizeof(FILINFO)); if (fno == 0) @@ -713,9 +710,11 @@ FRESULT FileOpen(char *path, uint32_t *Size, FIL *FileHandle) *Size = (uint32_t)fno->fsize; if (Fresult == FR_OK) { - FileHandle = my_malloc(sizeof(FIL)); + //FileHandle = my_malloc(sizeof(FIL)); if (FileHandle == 0) Fresult = FR_DENIED; + else + Fresult = f_open(FileHandle,path,FA_READ); } else { |
