From 5f0abf66eb361e0a41ddfc8b47b6433da5d2b097 Mon Sep 17 00:00:00 2001 From: Christian Muck Date: Wed, 8 Feb 2012 14:55:54 +0100 Subject: [GENDLT-16] Create variable in dlt-system.conf to configure the timeout of the filetransfer fixed. --- src/system/dlt-system.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/system/dlt-system.c') 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) { -- cgit v1.2.1