Re: [Flightgear-devel] Bug with Protocol handling String fields?

2011-03-06 Thread Roberto Inzerillo
Is it FlightGear not parsing correctly the string input? Maybe attaching to it any \n it receives as a part of the string? Yes. That code could use some cleanup. First, it calls the simgear io channel function readline() which simply uses \n as delimiter, not knowing about the line

[Flightgear-devel] Bug with Protocol handling String fields?

2011-03-05 Thread Roberto Inzerillo
I don't know if it's a bug or it's me (I think it's a bug), so I ask you for comments about that. I'm fooling around with an Arduino board that sends data to FGFS with a serial protocol: fgfs --generic=serial,in,30,/dev/ttyACM1,9600,arduino_serial_basic_input The protocol input sections is

Re: [Flightgear-devel] Bug with Protocol handling String fields?

2011-03-05 Thread Csaba Halász
On Sat, Mar 5, 2011 at 6:09 PM, Roberto Inzerillo rob...@gmx.net wrote: Is it FlightGear not parsing correctly the string input? Maybe attaching to it any \n it receives as a part of the string? Yes. That code could use some cleanup. First, it calls the simgear io channel function readline()

Re: [Flightgear-devel] Bug with Protocol handling String fields?

2011-03-05 Thread Csaba Halász
On Sun, Mar 6, 2011 at 1:23 AM, Csaba Halász csaba.hal...@gmail.com wrote: On Sat, Mar 5, 2011 at 6:09 PM, Roberto Inzerillo rob...@gmx.net wrote: Is it FlightGear not parsing correctly the string input? Maybe attaching to it any \n it receives as a part of the string? Yes. That code could