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 | |
| 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')
3 files changed, 6 insertions, 2 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"); diff --git a/Software/Embedded_SW/Embedded/Common/SW_Info/SW_Info.c b/Software/Embedded_SW/Embedded/Common/SW_Info/SW_Info.c index 3f45325e6..81a34b7ac 100644 --- a/Software/Embedded_SW/Embedded/Common/SW_Info/SW_Info.c +++ b/Software/Embedded_SW/Embedded/Common/SW_Info/SW_Info.c @@ -20,7 +20,7 @@ typedef struct } TangoVersion_t; -TangoVersion_t _gTangoVersion = {1,3,9,9}; +TangoVersion_t _gTangoVersion = {1,3,9,10}; #define BUILD_DATE __DATE__ char Dat[50] = BUILD_DATE; char _gTangoName [MAX_STRING_LEN] = "Tango01 ";//d diff --git a/Software/Embedded_SW/Embedded/Communication/Connection.h b/Software/Embedded_SW/Embedded/Communication/Connection.h index e19a729dd..f09d53996 100644 --- a/Software/Embedded_SW/Embedded/Communication/Connection.h +++ b/Software/Embedded_SW/Embedded/Communication/Connection.h @@ -14,4 +14,6 @@ void DisconnectionRequest(MessageContainer* requestContainer); void KeepAliveRequestFunc(MessageContainer* requestContainer); void KeepAliveOneSecondCall(void); +extern int KeepAliveOneSecondCounter; + #endif /* COMMUNICATION_CONNECTION_H_ */ |
