diff options
author | Christian Muck <christian.muck@bmw.de> | 2012-02-08 14:55:54 +0100 |
---|---|---|
committer | Christian Muck <christian.muck@bmw.de> | 2012-02-08 14:55:54 +0100 |
commit | 5f0abf66eb361e0a41ddfc8b47b6433da5d2b097 (patch) | |
tree | 39625e12ed92d905e8ad23894f182827031dce81 /src/system/dlt-system.c | |
parent | 12b47dc73a54e89e0f7ded02faf7d0485b6a31af (diff) | |
download | DLT-daemon-5f0abf66eb361e0a41ddfc8b47b6433da5d2b097.tar.gz |
[GENDLT-16] Create variable in dlt-system.conf to configure the timeout of the filetransfer fixed.
Diffstat (limited to 'src/system/dlt-system.c')
-rwxr-xr-x | src/system/dlt-system.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/system/dlt-system.c b/src/system/dlt-system.c index 2902363..55d053c 100755 --- a/src/system/dlt-system.c +++ b/src/system/dlt-system.c @@ -128,7 +128,8 @@ void dlt_system_init_options(DltSystemOptions *options) options->FiletransferDirectory2[0]=0; options->FiletransferTimeStartup = DEFAULT_FILETRANSFER_TIME_STARTUP; options->FiletransferTimeDelay = DEFAULT_FILETRANSFER_TIME_DELAY; - + options->FiletransferTimeoutBetweenLogs = DEFAULT_FILETRANSFER_TIMEOUT_BETWEEN_LOGS; + /* Log file */ options->LogFileEnable = 0; options->LogFileNumber = 0; @@ -292,6 +293,11 @@ int dlt_system_parse_configuration(DltSystemOptions *options) options->FiletransferTimeDelay = atoi(value); printf("Option: %s=%s\n",token,value); } + else if(strcmp(token,"FiletransferTimeoutBetweenLogs")==0) + { + options->FiletransferTimeoutBetweenLogs = atoi(value); + printf("Option: %s=%s\n",token,value); + } /* Log File */ else if(strcmp(token,"LogFileEnable")==0) { |