From 99554aaefd61f29be38669d46c7e4a573bec311f Mon Sep 17 00:00:00 2001 From: Shlomo Hecht Date: Tue, 29 Jan 2019 18:33:11 +0200 Subject: Version 1.3.5.3: IDS handling, control track and fixing, and other changes. --- Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c') 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 { -- cgit v1.3.1