diff options
author | Gary E. Miller <gem@rellim.com> | 2015-04-02 16:31:23 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2015-04-02 16:32:30 -0700 |
commit | 99c6d72cee7decd6001a88625c8613f376b9cbfe (patch) | |
tree | f739f4ab2a7d402577542b7f9baa2bdd6bf0e94b /serial.c | |
parent | c74af0783107463d041be949a001bd3b1e2b84e6 (diff) | |
download | gpsd-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; } |