diff options
author | Chris Kuethe <chris.kuethe@gmail.com> | 2006-11-29 00:05:49 +0000 |
---|---|---|
committer | Chris Kuethe <chris.kuethe@gmail.com> | 2006-11-29 00:05:49 +0000 |
commit | dfa76c9ec99fe05651e26616500e3a5b1ed6074e (patch) | |
tree | 37fd45554b05b22e4717fd5ef3c748b46c3a6a29 /drivers.c | |
parent | 54d59baea0064856437ab25674bff804c1b53a72 (diff) | |
download | gpsd-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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) |