From 2bc09e5268284b4d7009fa66930bcfc937400f3b Mon Sep 17 00:00:00 2001 From: ehofman Date: Sun, 25 Jul 2004 18:47:18 +0000 Subject: [PATCH] Get rid of the double comma's for the file section of the generic protocol also. --- docs-mini/README.IO | 2 +- src/Main/fg_io.cxx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs-mini/README.IO b/docs-mini/README.IO index f5b45799d..38607916e 100644 --- a/docs-mini/README.IO +++ b/docs-mini/README.IO @@ -27,7 +27,7 @@ Generic Communction: params can be: serial port communication: serial,dir,hz,device,baud,protocol socket communication: socket,dir,hz,machine,port,style,protocol - output to a file: file,dir,hz,filename,,protocol + output to a file: file,dir,hz,filename,protocol The confinfiguration file is defined as follows: diff --git a/src/Main/fg_io.cxx b/src/Main/fg_io.cxx index 2e06e16b9..d898baec4 100644 --- a/src/Main/fg_io.cxx +++ b/src/Main/fg_io.cxx @@ -172,6 +172,7 @@ FGIO::parse_port_config( const string& config ) } else if ( protocol == "generic" ) { int n = 6; if (tokens[1] == "socket") n++; + else if (tokens[1] == "file") n--; FGGeneric *generic = new FGGeneric( tokens[n] ); io = generic;