summaryrefslogtreecommitdiff
path: root/ppsthread.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2013-12-16 22:14:13 -0800
committerGary E. Miller <gem@rellim.com>2013-12-16 22:14:13 -0800
commit2a253401ddba9b5cbec6f2328dff5156bdbd81ee (patch)
tree1f06d89bf811fa2c89a74e8ef028249f8867b3b5 /ppsthread.c
parenta496a59c81173881900d976be35752787f4ab38c (diff)
downloadgpsd-2a253401ddba9b5cbec6f2328dff5156bdbd81ee.tar.gz
Fix my stupid PPS mistake. PPS still not quit right...
Patch by: Mick Durkin <mick.durkin@napierdeltic.demon.co.uk>
Diffstat (limited to 'ppsthread.c')
-rw-r--r--ppsthread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ppsthread.c b/ppsthread.c
index bbadc37f..ce133ceb 100644
--- a/ppsthread.c
+++ b/ppsthread.c
@@ -336,7 +336,6 @@ static /*@null@*/ void *gpsd_ppsmonitor(void *arg)
/* mask for monitored lines */
state &= PPS_LINE_TIOC;
edge = (state > state_last) ? 1 : 0;
- state_last = state;
#endif /* TIOCMIWAIT */
/* ok and log used by KPPS and TIOMCWAIT */
@@ -450,6 +449,7 @@ static /*@null@*/ void *gpsd_ppsmonitor(void *arg)
session->gpsdata.dev.path, state);
unchanged = 0;
}
+ state_last = state;
/* save this edge so we know next cycle time */
pulse[edge] = clock_ts;
gpsd_report(session->context->debug, LOG_PROG,