summaryrefslogtreecommitdiff
path: root/nmea_parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'nmea_parse.c')
-rw-r--r--nmea_parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nmea_parse.c b/nmea_parse.c
index 58171701..4cea1a57 100644
--- a/nmea_parse.c
+++ b/nmea_parse.c
@@ -278,9 +278,9 @@ static gps_mask_t processGPGGA(int c UNUSED, char *field[], struct gps_data_t *o
mask |= CLIMB_SET;
}
if (strlen(field[11]) > 0) {
- out->fix.separation = atof(field[11]);
+ out->separation = atof(field[11]);
} else {
- out->fix.separation = wgs84_separation(out->fix.latitude,out->fix.longitude);
+ out->separation = wgs84_separation(out->fix.latitude,out->fix.longitude);
}
}
return mask;