aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2019-10-24 17:08:45 +0300
committerShlomo Hecht <shlomo@twine-s.com>2019-10-24 17:08:45 +0300
commitb63e2f557d781fa3cfcf8e6b9c784641c0c8927f (patch)
tree687c2d25f1a06f0f8a20d44a365eac33355c20f3 /Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
parent87e24883ea2c5f1947943547cff29357bc8cbd2f (diff)
parent50ed121723c0dad1ce5d1af7f2a12a56ae2ba8a7 (diff)
downloadTango-b63e2f557d781fa3cfcf8e6b9c784641c0c8927f.tar.gz
Tango-b63e2f557d781fa3cfcf8e6b9c784641c0c8927f.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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c b/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
index caad43712..018e83ce0 100644
--- a/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
+++ b/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
@@ -53,7 +53,7 @@ FIL *UploadFileHandle = 0; //the system supports a single active file
FIL *DownloadFileHandle = 0; //the system supports a single active file
char FileHandleChar[5];
char ErrorMsg[100];
-#define MAX_CHUNK_LENGTH 5500
+#define MAX_CHUNK_LENGTH 3500
int32_t FileLength = 0;
int32_t FileReceivedLength = 0;
int32_t FileSentLength = 0;
@@ -167,7 +167,7 @@ uint32_t FileChunkUploadRequestFunc(MessageContainer* requestContainer)
lFresult = Fresult;
if(Fresult != FR_OK)
{
- LOG_ERROR (Fresult,"f_write error");
+ Report("f_write error",__FILE__,Fresult,FileReceivedLength,RpWarning,request->buffer.len,0);
FileDone = true;
}
else