From 91717074dcf0fcd4092e535aafd4045b466df7af Mon Sep 17 00:00:00 2001 From: Haakan Johansson Date: Sat, 12 Mar 2016 19:04:10 +0100 Subject: [PATCH 2/3] state_last_tio was never set, so edge detection not working. --- ppsthread.c | 2 ++ 1 fil ändrad, 2 tillägg(+) diff --git a/ppsthread.c b/ppsthread.c index 4f53e18..dfb55be 100644 --- a/ppsthread.c +++ b/ppsthread.c @@ -747,6 +747,8 @@ static void *gpsd_ppsmonitor(void *arg) edge_tio = (state_tio > state_last_tio) ? 1 : 0; + state_last_tio = state_tio; + /* three things now known about the current edge: * clock_ts - time of the edge * state - the serial line input states -- 1.7.10.4