From: Dave H. <dhy...@gm...> - 2009-03-30 05:07:05
|
Hi eaton, > However, if I use readIMU(), then it gets only the first sentence correctly, > then rest of sentences are read as empty. > (First sentence is read correctly always, but next sentences not...) > > Could someone tell me what might be the problem? I don't see anything obvious. fgets will leave the \n in the buffer that's read (and perhaps a \r as well - I don't recall if NMEA sends those or not). I'm not sure how this impacts your parsing code, since you didn't show us that. Were you expecting readIMU to process one sentence per call? -- Dave Hylands Shuswap, BC, Canada http://www.DaveHylands.com/ |