diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2005-04-30 15:11:00 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2005-04-30 15:11:00 +0000 |
commit | 7a4608a22626002204e1627718d222e221863370 (patch) | |
tree | 590fb684e1b4f0de37c10133fbb34aaf5238e6d5 /nmea_parse.c | |
parent | cf486a2e716a818add61382d5ffaa7f87822a3a5 (diff) | |
download | gpsd-7a4608a22626002204e1627718d222e221863370.tar.gz |
Another round of fixes from Rob Janssen.
Diffstat (limited to 'nmea_parse.c')
-rw-r--r-- | nmea_parse.c | 5 |
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; |