diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2019-05-12 08:53:04 +0300 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2019-05-12 08:53:04 +0300 |
| commit | a452b4d94bc1fd5cd8f8605049fa34a0e8ab4766 (patch) | |
| tree | 922daf1ddc75fb498f7b1f9be3d6a6fa46c87d93 /Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c | |
| parent | d66c5e376f12aff4cd69e09dbe629a5a069392cc (diff) | |
| parent | 97bf76fbd74b737f1842e1b9c9bce4afa8e4791f (diff) | |
| download | Tango-a452b4d94bc1fd5cd8f8605049fa34a0e8ab4766.tar.gz Tango-a452b4d94bc1fd5cd8f8605049fa34a0e8ab4766.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.c | 4 |
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 4acfe8d4c..e6b18e53d 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> @@ -150,7 +151,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"); |
