From 4d45b159baa4bdb3a926cb23384c4c7a3d07a74b Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 15 Sep 2009 12:46:03 +0000 Subject: Give DOPs their own structure... ...mainly because there will shortly be code to clear it as a unit. Pure refactoring step; all regression tests pass, splint gives no warnings. --- driver_evermore.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'driver_evermore.c') diff --git a/driver_evermore.c b/driver_evermore.c index d1467100..1227d5ec 100644 --- a/driver_evermore.c +++ b/driver_evermore.c @@ -222,11 +222,11 @@ gps_mask_t evermore_parse(struct gps_device_t *session, unsigned char *buf, size case 0x04: /* DOP Data Output */ session->gpsdata.fix.time = session->gpsdata.sentence_time = gpstime_to_unix((int)getleuw(buf2, 2), getleul(buf2, 4)*0.01) - session->context->leap_seconds; - session->gpsdata.gdop = (double)getub(buf2, 8)*0.1; - session->gpsdata.pdop = (double)getub(buf2, 9)*0.1; - session->gpsdata.hdop = (double)getub(buf2, 10)*0.1; - session->gpsdata.vdop = (double)getub(buf2, 11)*0.1; - session->gpsdata.tdop = (double)getub(buf2, 12)*0.1; + session->gpsdata.dop.gdop = (double)getub(buf2, 8)*0.1; + session->gpsdata.dop.pdop = (double)getub(buf2, 9)*0.1; + session->gpsdata.dop.hdop = (double)getub(buf2, 10)*0.1; + session->gpsdata.dop.vdop = (double)getub(buf2, 11)*0.1; + session->gpsdata.dop.tdop = (double)getub(buf2, 12)*0.1; switch (getub(buf2, 13)) { case 0: /* no position fix */ case 1: /* manual calls this "1D navigation" */ -- cgit v1.2.1