summaryrefslogtreecommitdiff
path: root/gpsmon.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-03-11 08:32:15 -0400
committerEric S. Raymond <esr@thyrsus.com>2015-03-11 08:32:15 -0400
commit215a4054880af2993f81c1e26245084e2075a6da (patch)
treee89c1852140e11d113954f3d365a3ad640631c67 /gpsmon.c
parentd58f5ce5a04e7a680d67796f80d22f73d4943e40 (diff)
downloadgpsd-215a4054880af2993f81c1e26245084e2075a6da.tar.gz
Simplify the thread-monitor interface.
PPS observed live on GR601W.
Diffstat (limited to 'gpsmon.c')
-rw-r--r--gpsmon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpsmon.c b/gpsmon.c
index 2d40ccd1..bee05b83 100644
--- a/gpsmon.c
+++ b/gpsmon.c
@@ -252,7 +252,7 @@ void pps_update(WINDOW *win, int y, int x)
/*@-type -noeffect@*/ /* splint is confused about struct timespec */
struct timedelta_t ppstimes;
- if (pps_thread_lastpps(&session.pps_thread, &ppstimes) > 0) {
+ if (pps_thread_ppsout(&session.pps_thread, &ppstimes) > 0) {
/* NOTE: can not use double here due to precision requirements */
struct timespec timedelta;
int i;
@@ -853,7 +853,7 @@ static void gpsmon_hook(struct gps_device_t *device, gps_mask_t changed UNUSED)
if ( 0 != isnan(device->newdata.time)) {
// "NTP: bad new time
#if defined(PPS_ENABLE) && !defined(S_SPLINT_S)
- } else if (device->newdata.time <= device->pps_thread.fixin_real.tv_sec) {
+ } else if (device->newdata.time <= device->pps_thread.fixin.real.tv_sec) {
// "NTP: Not a new time
#endif /* PPS_ENABLE */
} else