diff options
Diffstat (limited to 'libgpsd_core.c')
-rw-r--r-- | libgpsd_core.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/libgpsd_core.c b/libgpsd_core.c index ff364f2e..0f60100e 100644 --- a/libgpsd_core.c +++ b/libgpsd_core.c @@ -810,10 +810,10 @@ gps_mask_t gpsd_poll(struct gps_device_t *session) gps_clear_fix(&session->newdata); -#ifdef TIMING_ENABLE - if (session->packet.outbuflen == 0) - session->d_xmit_time = timestamp(); -#endif /* TIMING_ENABLE */ + /* + * If we ever want a start-of-packet timestamp again, take it here + * with a test that session->packet.outbuflen is zero. + */ if (session->packet.type >= COMMENT_PACKET) { /*@-shiftnegative@*/ @@ -890,10 +890,6 @@ gps_mask_t gpsd_poll(struct gps_device_t *session) gpsd_report(LOG_RAW + 3, "Accepted packet on %s.\n", session->gpsdata.dev.path); -#ifdef TIMING_ENABLE - session->d_recv_time = timestamp(); -#endif /* TIMING_ENABLE */ - /* track the packet count since achieving sync on the device */ if (first_sync) { speed_t speed = gpsd_get_speed(&session->ttyset); @@ -997,10 +993,6 @@ gps_mask_t gpsd_poll(struct gps_device_t *session) session->fixcnt++; } -#ifdef TIMING_ENABLE - session->d_decode_time = timestamp(); -#endif /* TIMING_ENABLE */ - /* * Sanity check. This catches a surprising number of port and * driver errors, including 32-vs.-64-bit problems. |