Get rid of the double comma's for the file section of the generic protocol also.
This commit is contained in:
parent
dddc4d4b16
commit
2bc09e5268
2 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue