aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-12-16 02:10:43 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-12-16 02:10:43 +0200
commita309970822fdc61357db07c32fd67b15d1c497f0 (patch)
treef2e3a1dc47ea584753fbaaaa9d5d710aecf95f80 /Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
parent33bbdd4f67822cdf6a655ae92ab8307d72ee0365 (diff)
parent2fd1b01fce7ec78262790a2ed99d9fd4b3d9e428 (diff)
downloadTango-a309970822fdc61357db07c32fd67b15d1c497f0.tar.gz
Tango-a309970822fdc61357db07c32fd67b15d1c497f0.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/Tango/_git/Tango
Diffstat (limited to 'Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c')
-rw-r--r--Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c b/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
index a59a14dcf..17c1f164b 100644
--- a/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
+++ b/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
@@ -566,20 +566,12 @@ uint32_t DeleteRequestFunc(MessageContainer* requestContainer)
//int NumOfFiles = 0;
FRESULT Fresult = FR_OK;
- if (1)//(Semaphore_pend(FFS_Sem, BIOS_NO_WAIT))
- {
- Fresult = f_unlink(request->path);
- Semaphore_post(FFS_Sem);
- }
- else
- {
- Fresult = FR_DENIED;
- Report("Semaphore_pend failed", __FILE__, __LINE__, 4, RpWarning, (int)0, 0);
- }
+ Fresult = f_unlink(request->path);
+ Semaphore_post(FFS_Sem);
REPORT_MSG(Fresult, "File Delete");
responseContainer = createContainer(MESSAGE_TYPE__DeleteResponse, requestContainer->token, false, &response, &delete_response__pack, &delete_response__get_packed_size);
- if (Fresult!= OK)
+ if ((Fresult!= FR_OK)&&(Fresult!= FR_NO_FILE))
{
//usnprintf(ErrorMsg, 100, "File Operation failed error code %d",Fresult);
responseContainer.has_error = true;