summaryrefslogtreecommitdiff
path: root/libgpsd_core.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-03-08 09:35:03 -0400
committerEric S. Raymond <esr@thyrsus.com>2015-03-08 09:35:03 -0400
commitc82fe00247bd9fcbf5a70901c3b022e8ddd5ab0f (patch)
treef6876e6cc50dd166e94c30851804bb7911c0e613 /libgpsd_core.c
parent2144fc0fde0b5ba35bc252beaef753c2e07e9fd8 (diff)
downloadgpsd-c82fe00247bd9fcbf5a70901c3b022e8ddd5ab0f.tar.gz
Eliminate timestamp-T use from PPS thread code.
PPS observed live on GR-601W. All regression yests pass.
Diffstat (limited to 'libgpsd_core.c')
-rw-r--r--libgpsd_core.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libgpsd_core.c b/libgpsd_core.c
index 0dbaf6b7..e8ed6852 100644
--- a/libgpsd_core.c
+++ b/libgpsd_core.c
@@ -1688,8 +1688,7 @@ void ntp_latch(struct gps_device_t *device, struct timedelta_t /*@out@*/*td)
#ifdef PPS_ENABLE
/* thread-safe update */
/*@-compdef@*/
- pps_thread_stash_fixtime(&device->pps_thread,
- device->newdata.time, td->clock);
+ pps_thread_stash_fixtime(&device->pps_thread, td->real, td->clock);
/*@+compdef@*/
#endif /* PPS_ENABLE */
}