summaryrefslogtreecommitdiff
path: root/gpsd.h-tail
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-03-29 10:30:22 -0400
committerEric S. Raymond <esr@thyrsus.com>2015-03-29 10:30:22 -0400
commit4667a02f7ede778f911bb8af1a01cba68802eb1a (patch)
tree800832c877704adcfd10a3cb50bf2b0e22d6f551 /gpsd.h-tail
parent009ba6e3452df29cbf1757bc0c79dc14683a98da (diff)
downloadgpsd-4667a02f7ede778f911bb8af1a01cba68802eb1a.tar.gz
Attempt to support /dev/pps devices.
For these devices: 1. The hunt loop is disabled. 2. When emitting a PPS report, all other (non-/dev/pps) devices are checked for in-band time. If no time is found the report is not emitted. If time is ound its seconds field is incremented by 1 and it is used Every PPS from a device resets its online time, which should prevent /dev/pps devices from timing out too often. Not yet tested with a /dev/pps device. All regression tests oass.
Diffstat (limited to 'gpsd.h-tail')
-rw-r--r--gpsd.h-tail1
1 files changed, 1 insertions, 0 deletions
diff --git a/gpsd.h-tail b/gpsd.h-tail
index a8a10df2..41bc876a 100644
--- a/gpsd.h-tail
+++ b/gpsd.h-tail
@@ -383,6 +383,7 @@ typedef enum {source_unknown,
source_tcp, /* TCP/IP stream: case detected but not used */
source_udp, /* UDP stream: case detected but not used */
source_gpsd, /* Remote gpsd instance over TCP/IP */
+ source_pps, /* PPS-only device, such as /dev/ppsN */
} sourcetype_t;
/*