summaryrefslogtreecommitdiff
path: root/driver_oncore.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-03-23 08:20:38 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-03-23 08:20:38 -0400
commitfbfc0b76ba6223d5152a412a9e31e3729342a979 (patch)
treebd8437d172d6d9b75016e82b40a4928a20a24015 /driver_oncore.c
parentb3dbcae121b94dacff00354169520117da0a13d6 (diff)
downloadgpsd-fbfc0b76ba6223d5152a412a9e31e3729342a979.tar.gz
Make all drivers set the PPSTIME_IS mask where appropriate. It's not yet used.
All regression tests pass.
Diffstat (limited to 'driver_oncore.c')
-rw-r--r--driver_oncore.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/driver_oncore.c b/driver_oncore.c
index b274f0d0..88bc8f39 100644
--- a/driver_oncore.c
+++ b/driver_oncore.c
@@ -145,8 +145,6 @@ oncore_msg_navsol(struct gps_device_t *session, unsigned char *buf,
mask |= LATLON_IS | ALTITUDE_IS | SPEED_IS | TRACK_IS;
- session->driver.oncore.good_time = 0;
-
gpsd_zero_satellites(&session->gpsdata);
/* Merge the satellite information from the Bb message. */
Bbused = 0;
@@ -181,7 +179,13 @@ oncore_msg_navsol(struct gps_device_t *session, unsigned char *buf,
session->gpsdata.used[nsv++] = sv;
/* bit 2 of the status word: using for time solution */
if (status & 0x02)
- session->driver.oncore.good_time = 1;
+ mask |= PPSTIME_IS;
+ /*
+ * The PPSTIME_IS mask bit exists distinctly from TIME_IS exactly
+ * so an OnCore running in time-service mode (and other GPS clocks)
+ * can signal that it's returning time even though no position fixes
+ * have been available.
+ */
}
}
for (j = 0; (int)j < session->driver.oncore.visible; j++)