aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2019-05-12 09:00:21 +0300
committerShlomo Hecht <shlomo@twine-s.com>2019-05-12 09:00:21 +0300
commit78e431cbb1e3b92f7b831bd20d6dc5690e4fbfa4 (patch)
treecb2b2787e7c535a1e1fa0426504be4f83ad47515 /Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
parentdf6b48edee60137b1ed06586ffdaf47ea47cb4aa (diff)
parenta452b4d94bc1fd5cd8f8605049fa34a0e8ab4766 (diff)
downloadTango-78e431cbb1e3b92f7b831bd20d6dc5690e4fbfa4.tar.gz
Tango-78e431cbb1e3b92f7b831bd20d6dc5690e4fbfa4.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, 3 insertions, 1 deletions
diff --git a/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c b/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
index 4850ddbde..5a77a013d 100644
--- a/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
+++ b/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
@@ -6,6 +6,7 @@
*/
#include "include.h"
#include "Communication/CommunicationTask.h"
+#include "Communication/connection.h"
#include <DataDef.h>
#include <Communication/PMR/IO/FileUploadRequest.pb-c.h>
@@ -152,7 +153,8 @@ uint32_t FileChunkUploadRequestFunc(MessageContainer* requestContainer)
// memcpy (&ReceivedFileHandle,request->uploadid,sizeof(ReceivedFileHandle));
//if (ReceivedFileHandle == FileHandle)
//{
- Fresult = f_write(ReceivedFileHandle,request->buffer.data,request->buffer.len,&WrittenBytes );
+ KeepAliveOneSecondCounter = 0;
+ Fresult = f_write(ReceivedFileHandle,request->buffer.data,request->buffer.len,&WrittenBytes );
if(Fresult != FR_OK)
{
LOG_ERROR (Fresult,"f_write error");