diff options
author | Gary E. Miller <gem@rellim.com> | 2010-07-21 22:09:51 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2010-07-21 22:09:51 -0700 |
commit | b7477aec95ad03fcf3ad3d461b6aad39246aa9a5 (patch) | |
tree | 27c255a4a4bcd42a9508317c54be1052d3b8438d /libgpsd_core.c | |
parent | 7563881c6879db6b1b6e0fd536e8ec5f618bce0d (diff) | |
download | gpsd-b7477aec95ad03fcf3ad3d461b6aad39246aa9a5.tar.gz |
Kernel PPS comment tweaks.
Diffstat (limited to 'libgpsd_core.c')
-rw-r--r-- | libgpsd_core.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libgpsd_core.c b/libgpsd_core.c index 7f33bb4d..61149f76 100644 --- a/libgpsd_core.c +++ b/libgpsd_core.c @@ -164,6 +164,7 @@ static int init_kernel_pps(struct gps_device_t *session) { return -1; } /* Attach the line PPS discpline. */ + /* This ativates the magic /dev/pps0 device */ if ( 0 > ioctl(session->gpsdata.gps_fd, TIOCSETD, &ldisc)) { gpsd_report(LOG_INF, "KPPS cannot set PPS line discipline: %d\n" , errno); @@ -172,8 +173,6 @@ static int init_kernel_pps(struct gps_device_t *session) { memset( (void *)&pp, 0, sizeof(pps_params_t)); - /* need to run as root: ldattach PPS /dev/ttyS0 to create the - * magic /dev/pps0 device */ /* uh, oh, magic file names! */ /* FIXME, need to look in /sys/class/pps/pps?/path * to find the /dev/pps? that matches our serial port */ |