diff options
| author | Shlomo Hecht <shlomo@twine-s.com> | 2019-05-10 16:16:31 +0300 |
|---|---|---|
| committer | Shlomo Hecht <shlomo@twine-s.com> | 2019-05-10 16:16:31 +0300 |
| commit | 97bf76fbd74b737f1842e1b9c9bce4afa8e4791f (patch) | |
| tree | 7b5d2ce06af9e8e15e33390de2ff39134f3d55ae /Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c | |
| parent | 04078aa1cce858187cd4c87fd1472b3c816597df (diff) | |
| download | Tango-97bf76fbd74b737f1842e1b9c9bce4afa8e4791f.tar.gz Tango-97bf76fbd74b737f1842e1b9c9bce4afa8e4791f.zip | |
Version 13.9.10 reset the keepalive counter during file upload to avoid disconnection
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"); |
