From 2ae441d42411d416e9e3f39c60f6c14d23708f74 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 31 Oct 2013 23:49:55 -0400 Subject: Contain the assumption that time hinting is done to NTPD. Because it might be going to chrony. Or something else. No logic changes, just name changes and one new derived #define, TIMEHINT_ENABLE. --- driver_tsip.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'driver_tsip.c') diff --git a/driver_tsip.c b/driver_tsip.c index 087dfccf..6dced174 100644 --- a/driver_tsip.c +++ b/driver_tsip.c @@ -1151,13 +1151,13 @@ static void tsip_mode(struct gps_device_t *session, int mode) } #endif /* RECONFIGURE_ENABLE */ -#ifdef NTPSHM_ENABLE -static double tsip_ntp_offset(struct gps_device_t *session UNUSED) +#ifdef TIMEHINT_ENABLE +static double tsip_time_offset(struct gps_device_t *session UNUSED) { /* FIX-ME: is a constant offset right here? */ return 0.075; } -#endif /* NTPSHM_ENABLE */ +#endif /* TIMEHINT_ENABLE */ void configuration_packets_generic(struct gps_device_t *session) /* configure generic Trimble TSIP device to a known state */ @@ -1274,9 +1274,9 @@ const struct gps_type_t tsip_binary = #ifdef CONTROLSEND_ENABLE .control_send = tsip_control_send,/* how to send commands */ #endif /* CONTROLSEND_ENABLE */ -#ifdef NTPSHM_ENABLE - .ntp_offset = tsip_ntp_offset, -#endif /* NTPSHM_ENABLE */ +#ifdef TIMEHINT_ENABLE + .time_offset = tsip_time_offset, +#endif /* TIMEHINT_ENABLE */ }; /* *INDENT-ON* */ -- cgit v1.2.1