diff options
author | Gary E. Miller <gem@rellim.com> | 2015-03-31 15:10:04 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2015-03-31 15:10:04 -0700 |
commit | 89ba451e0a76682e5a1b499f894d1b21b6e38198 (patch) | |
tree | 241fad00a9608fe967e192c46a0aebc164911dc8 /libgpsd_core.c | |
parent | 60aa77a844b8a0a95053d8425e21d2a7bc6cf2b6 (diff) | |
download | gpsd-89ba451e0a76682e5a1b499f894d1b21b6e38198.tar.gz |
Another small step to /dev/ppsX. ppsthread now looping fine, no time yet.
Diffstat (limited to 'libgpsd_core.c')
-rw-r--r-- | libgpsd_core.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libgpsd_core.c b/libgpsd_core.c index a674ae9d..58bdc805 100644 --- a/libgpsd_core.c +++ b/libgpsd_core.c @@ -554,6 +554,10 @@ int gpsd_activate(struct gps_device_t *session, const int mode) // cppcheck-suppress pointerLessThanZero if (session->gpsdata.gps_fd < 0) { /* return could be -1, PLACEHOLDING_FD, of UNALLOCATED_FD */ + if ( PLACEHOLDING_FD == session->gpsdata.gps_fd ) { + /* it is /dev/ppsX, need to set devicename, etc. */ + gpsd_clear(session); + } return session->gpsdata.gps_fd; } |