summaryrefslogtreecommitdiff
path: root/libgpsd_core.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2008-01-21 00:37:35 +0000
committerGary E. Miller <gem@rellim.com>2008-01-21 00:37:35 +0000
commit4c02702ffed62869d007602351ed37a93e677fab (patch)
treed0dcdeda6e1e296b83e2757e0bce85e943ec021f /libgpsd_core.c
parent3ed9e1e93a25ce3dc01fc920746c2dfa853234c4 (diff)
downloadgpsd-4c02702ffed62869d007602351ed37a93e677fab.tar.gz
Fix, 2nd try, too many PPS threads being started.
Found by John Arthur <lists@davey.net.au>
Diffstat (limited to 'libgpsd_core.c')
-rw-r--r--libgpsd_core.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libgpsd_core.c b/libgpsd_core.c
index 91ec967a..c1508083 100644
--- a/libgpsd_core.c
+++ b/libgpsd_core.c
@@ -138,6 +138,7 @@ static void *gpsd_ppsmonitor(void *arg)
pps_device = TIOCM_CTS;
#endif
+ gpsd_report(LOG_PROG, "Create Thread gpsd_ppsmonitor\n");
/* wait for status change on the device's carrier-detect line */
while (ioctl(session->gpsdata.gps_fd, TIOCMIWAIT, pps_device) == 0) {
@@ -218,11 +219,11 @@ static void *gpsd_ppsmonitor(void *arg)
gpsd_report(LOG_RAW, "PPS square wave. cycle: %d, duration: %d\n",
cycle, duration);
} else {
- gpsd_report(LOG_RAW, "PPS pulse rejected. cycle: %d, duration: %d\n",
+ gpsd_report(LOG_INF, "PPS pulse rejected. cycle: %d, duration: %d\n",
cycle, duration);
}
} else {
- gpsd_report(LOG_RAW, "PPS pulse rejected. No fix.\n");
+ gpsd_report(LOG_INF, "PPS pulse rejected. No fix.\n");
}
/*@ -boolint @*/