diff options
author | Chris Kuethe <chris.kuethe@gmail.com> | 2006-09-23 17:12:34 +0000 |
---|---|---|
committer | Chris Kuethe <chris.kuethe@gmail.com> | 2006-09-23 17:12:34 +0000 |
commit | 001b80ff01ef89fc267258a8463aa0f817064a5d (patch) | |
tree | 7b2112b27bd0ed2f90d552ded1e09bcb06a18509 /libgps.c | |
parent | 93f6929d0bd9583c67e96dc57736f104a2dac740 (diff) | |
download | gpsd-001b80ff01ef89fc267258a8463aa0f817064a5d.tar.gz |
Ignore the '$' command unless we're in profiling mode.
This prevents my time display from getting screwed up in cgps or xgps
when being driven by a sirfstar receiver. This command was
undocumented anyway...
Diffstat (limited to 'libgps.c')
-rw-r--r-- | libgps.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -465,6 +465,8 @@ static void gps_unpack(char *buf, struct gps_data_t *gpsdata) gpsdata->profiling = (sp[2] == '1'); break; case '$': + if (gpsdata->profiling != 1) + break; /*@ +matchanyintegral -formatcode @*/ (void)sscanf(sp, "$=%s %zd %lf %lf %lf %lf %lf %lf", gpsdata->tag, |