aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
diff options
context:
space:
mode:
authorMirta <mirta@twine-s.com>2020-09-21 15:13:14 +0300
committerMirta <mirta@twine-s.com>2020-09-21 15:13:14 +0300
commit2faf5e3e5183ab717e28209cd62959d94cd7a073 (patch)
tree62ea2539061dbae5798b18c890cca34e51c580a4 /Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
parented9b9c308adeec50bea3eb838de2de3f79c06b0a (diff)
parent6c3ff609e371b103183d01b84567ad6b7b70ef4a (diff)
downloadTango-2faf5e3e5183ab717e28209cd62959d94cd7a073.tar.gz
Tango-2faf5e3e5183ab717e28209cd62959d94cd7a073.zip
Fixed Gradient Bug
Better alloc management
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;