summaryrefslogtreecommitdiff
path: root/libgpsd_core.c
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2006-10-01 07:04:58 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2006-10-01 07:04:58 +0000
commitfde797eaa533bd0b5083bacff1e785db9313fe25 (patch)
tree1c32858b3cbb2865f3b98036fdd54b0c3b9d8ae4 /libgpsd_core.c
parentab804daf9e2eb72e311cad056f461fd48ea924c7 (diff)
downloadgpsd-fde797eaa533bd0b5083bacff1e785db9313fe25.tar.gz
When generating the GPGGA message, look into the gpsdata.status...
...which tells whether or not DGPS corrections were used, and not into gpsdata.fix.status, which doesn't exist. Petr Slansky noticed that we were setting status 3, aka PPS.
Diffstat (limited to 'libgpsd_core.c')
-rw-r--r--libgpsd_core.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libgpsd_core.c b/libgpsd_core.c
index 0119c2f5..115c1aa8 100644
--- a/libgpsd_core.c
+++ b/libgpsd_core.c
@@ -244,8 +244,7 @@ void gpsd_position_fix_dump(struct gps_device_t *session,
((session->gpsdata.fix.latitude > 0) ? 'N' : 'S'),
degtodm(fabs(session->gpsdata.fix.longitude)),
((session->gpsdata.fix.longitude > 0) ? 'E' : 'W'),
- (session->gpsdata.fix.mode >= MODE_2D) ? STATUS_FIX : STATUS_NO_FIX,
-
+ session->gpsdata.status,
session->gpsdata.satellites_used);
if (isnan(session->gpsdata.hdop))
(void)strlcat(bufp, ",", len);