summaryrefslogtreecommitdiff
path: root/drivers.c
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2006-11-29 00:05:49 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2006-11-29 00:05:49 +0000
commitdfa76c9ec99fe05651e26616500e3a5b1ed6074e (patch)
tree37fd45554b05b22e4717fd5ef3c748b46c3a6a29 /drivers.c
parent54d59baea0064856437ab25674bff804c1b53a72 (diff)
downloadgpsd-dfa76c9ec99fe05651e26616500e3a5b1ed6074e.tar.gz
Because configure allows the selection of PPS on DCD or CTS...
...we should do the same when setting up the OpenBSD-specific timestamping code.
Diffstat (limited to 'drivers.c')
-rw-r--r--drivers.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers.c b/drivers.c
index 3d54d2a5..ad8e01a1 100644
--- a/drivers.c
+++ b/drivers.c
@@ -83,7 +83,11 @@ gps_mask_t nmea_parse_input(struct gps_device_t *session)
#ifdef TIOCSTSTAMP
struct tstamps tstamps;
+#ifdef PPS_ON_CTS
+ tstamps.ts_set |= TIOCM_CTS;
+#else /*!PPS_ON_CTS */
tstamps.ts_set |= TIOCM_CAR;
+#endif /* PPS_ON_CTS */
tstamps.ts_clr = 0;
if (ioctl(session->gpsdata.gps_fd, TIOCSTSTAMP, &tstamps) < 0)