summaryrefslogtreecommitdiff
path: root/serial.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2015-04-02 16:31:23 -0700
committerGary E. Miller <gem@rellim.com>2015-04-02 16:32:30 -0700
commit99c6d72cee7decd6001a88625c8613f376b9cbfe (patch)
treef739f4ab2a7d402577542b7f9baa2bdd6bf0e94b /serial.c
parentc74af0783107463d041be949a001bd3b1e2b84e6 (diff)
downloadgpsd-99c6d72cee7decd6001a88625c8613f376b9cbfe.tar.gz
Add a minimal PPS driver.
Now gpsctl, and friends, can return a pretty device name. And avoids a segfault on empty *device.
Diffstat (limited to 'serial.c')
-rw-r--r--serial.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/serial.c b/serial.c
index a81081d9..29f14d17 100644
--- a/serial.c
+++ b/serial.c
@@ -421,6 +421,7 @@ int gpsd_serial_open(struct gps_device_t *session)
/* we may need to hold on to this slot without opening the device */
if (source_pps == session->sourcetype) {
+ (void)gpsd_switch_driver(session, "PPS");
return PLACEHOLDING_FD;
}