[Gpsbabel-code] track output not in real time when sent to a pipe - a patch to fix it
Brought to you by:
robertl
From: Roy R. <rr...@ih...> - 2008-09-18 11:21:26
|
When you are doing a track with nmea output to a pipe the output gets buffered so it is not in real time. The following patch addresses this issue. I need this so I can send the output to navit. Regards, Roy Rankin diff --git a/nmea.c b/nmea.c index 4143e9d..058750d 100644 --- a/nmea.c +++ b/nmea.c @@ -1298,6 +1298,7 @@ nmea_trackpt_pr(const waypoint *wpt) cksum = nmea_cksum(obuf); gbfprintf(file_out, "$%s*%02X\n", obuf, cksum); } + gbfflush(file_out); } |