summaryrefslogtreecommitdiff
path: root/libgps.c
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2006-09-23 17:12:34 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2006-09-23 17:12:34 +0000
commit001b80ff01ef89fc267258a8463aa0f817064a5d (patch)
tree7b2112b27bd0ed2f90d552ded1e09bcb06a18509 /libgps.c
parent93f6929d0bd9583c67e96dc57736f104a2dac740 (diff)
downloadgpsd-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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libgps.c b/libgps.c
index 6669907f..1f87adc5 100644
--- a/libgps.c
+++ b/libgps.c
@@ -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,