aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
diff options
context:
space:
mode:
authorVictoria Plitt <Victoria.Plitt@twine-s.com>2020-09-24 21:41:19 +0300
committerVictoria Plitt <Victoria.Plitt@twine-s.com>2020-09-24 21:41:19 +0300
commite800a2be260470bc2756724e76097aba3a2527b4 (patch)
tree6ee0dd6d8533c8079876e7cca8b0ff68ec2991c1 /Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
parent3686a3df25a74a1e8fb12b5cff0aee5fef915fad (diff)
parentfddc07eece13c6676078e17b7e925ef70c6e70cb (diff)
downloadTango-e800a2be260470bc2756724e76097aba3a2527b4.tar.gz
Tango-e800a2be260470bc2756724e76097aba3a2527b4.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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c b/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
index 6bb40b215..72693f391 100644
--- a/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
+++ b/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
@@ -115,7 +115,7 @@ uint32_t FileUploadRequestFunc(MessageContainer* requestContainer)
if (sem_ok == true)
{
CommRxTaskHandle = Task_self();
- Task_setPri(CommRxTaskHandle, 2);
+ Task_setPri(CommRxTaskHandle, 4);
// Report("Task_setPri", __FILE__, __LINE__, 4, RpWarning, (int)CommRxTaskHandle, 0);
//Report("FileUploadRequestFunc 2", __FILE__, __LINE__, msec_millisecondCounter, RpWarning, (int)0, 0);
Fresult = f_open(UploadFileHandle,request->path,FA_READ | FA_WRITE | FA_OPEN_ALWAYS | FA_CREATE_ALWAYS);
@@ -284,7 +284,7 @@ void FileChunkUploadError(void)
{
REPORT_MSG (FileReceivedLength,"file upload too much data!");
f_close(UploadFileHandle);
- my_free (UploadFileHandle);
+ //my_free (UploadFileHandle); CAN NOT CALL FREE() FROM INTERRUPT
UploadFileHandle = 0;
FileReceivedLength = 0;
FileDone = true;
@@ -922,7 +922,7 @@ FRESULT FileOpen(char *path, uint32_t *Size, FIL *FileHandle)
}
else
{
- LOG_ERROR (Fresult,"f_stat error");
+ Report("f_stat error", __FILE__, __LINE__,Fresult, RpWarning, (int)0, 0);
}
my_free(fno);
return Fresult;