summaryrefslogtreecommitdiff
path: root/driver_zodiac.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-09-15 12:46:03 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-09-15 12:46:03 +0000
commit4d45b159baa4bdb3a926cb23384c4c7a3d07a74b (patch)
treed0bde309baaebbffea5b90e2a5c2621c15f3ad67 /driver_zodiac.c
parent94733458bbefa8c7d799653c5b713d2c55bbe996 (diff)
downloadgpsd-4d45b159baa4bdb3a926cb23384c4c7a3d07a74b.tar.gz
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.
Diffstat (limited to 'driver_zodiac.c')
-rw-r--r--driver_zodiac.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/driver_zodiac.c b/driver_zodiac.c
index e039a30b..0c1a4b6b 100644
--- a/driver_zodiac.c
+++ b/driver_zodiac.c
@@ -278,11 +278,11 @@ static gps_mask_t handle1003(struct gps_device_t *session)
/* ticks = getzlong(6); */
/* sequence = getzword(8); */
- session->gpsdata.gdop = (unsigned int)getzword(9) * 1e-2;
- session->gpsdata.pdop = (unsigned int)getzword(10) * 1e-2;
- session->gpsdata.hdop = (unsigned int)getzword(11) * 1e-2;
- session->gpsdata.vdop = (unsigned int)getzword(12) * 1e-2;
- session->gpsdata.tdop = (unsigned int)getzword(13) * 1e-2;
+ session->gpsdata.dop.gdop = (unsigned int)getzword(9) * 1e-2;
+ session->gpsdata.dop.pdop = (unsigned int)getzword(10) * 1e-2;
+ session->gpsdata.dop.hdop = (unsigned int)getzword(11) * 1e-2;
+ session->gpsdata.dop.vdop = (unsigned int)getzword(12) * 1e-2;
+ session->gpsdata.dop.tdop = (unsigned int)getzword(13) * 1e-2;
session->gpsdata.satellites = n;
for (i = 0; i < ZODIAC_CHANNELS; i++) {