diff options
author | Haakan Johansson <f96hajo@chalmers.se> | 2016-03-12 19:04:10 +0100 |
---|---|---|
committer | Jon Schlueter <jon.schlueter@gmail.com> | 2016-03-16 22:12:39 -0400 |
commit | 7b674ec98aff7619b0b5edf1d4187d9833d1f00d (patch) | |
tree | 2b5bb1b45bfa83501352d5dd2268f53fcd4cf2da /ppsthread.c | |
parent | 69d669e28c7cca9ea285d76a7f452ac8f9c78b5a (diff) | |
download | gpsd-7b674ec98aff7619b0b5edf1d4187d9833d1f00d.tar.gz |
state_last_tio was never set, so edge detection not working.
Diffstat (limited to 'ppsthread.c')
-rw-r--r-- | ppsthread.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ppsthread.c b/ppsthread.c index 4f53e185..dfb55be5 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 |