summaryrefslogtreecommitdiff
path: root/nmea_parse.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-04-30 15:11:00 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-04-30 15:11:00 +0000
commit7a4608a22626002204e1627718d222e221863370 (patch)
tree590fb684e1b4f0de37c10133fbb34aaf5238e6d5 /nmea_parse.c
parentcf486a2e716a818add61382d5ffaa7f87822a3a5 (diff)
downloadgpsd-7a4608a22626002204e1627718d222e221863370.tar.gz
Another round of fixes from Rob Janssen.
Diffstat (limited to 'nmea_parse.c')
-rw-r--r--nmea_parse.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/nmea_parse.c b/nmea_parse.c
index 3514dbce..7f478dfe 100644
--- a/nmea_parse.c
+++ b/nmea_parse.c
@@ -234,7 +234,6 @@ static int processGPGGA(int c UNUSED, char *field[], struct gps_data_t *out)
(empty field) DGPS station ID number (0000-1023)
*/
int mask;
- double separation; /* MSL - WGS84) in meters */
out->status = atoi(field[6]);
gpsd_report(3, "GPGGA sets status %d\n", out->status);
@@ -283,9 +282,9 @@ static int processGPGGA(int c UNUSED, char *field[], struct gps_data_t *out)
mask |= CLIMB_SET;
}
if ( strlen( field[11] ) ) {
- separation = atof(field[11]);
+ out->fix.separation = atof(field[11]);
} else {
- separation = wgs84_separation(out->fix.latitude,out->fix.longitude);
+ out->fix.separation = wgs84_separation(out->fix.latitude,out->fix.longitude);
}
}
return mask;