diff options
author | Chris Kuethe <chris.kuethe@gmail.com> | 2009-01-05 21:21:25 +0000 |
---|---|---|
committer | Chris Kuethe <chris.kuethe@gmail.com> | 2009-01-05 21:21:25 +0000 |
commit | d3ca471d22c357d959cd1fcd2caba8d039aa78a4 (patch) | |
tree | 7bdfa5c9b5a0a2f7f14a04ec7bf96db8ea792def | |
parent | 7b8265a925b60c1db00cef08c818c99a60509671 (diff) | |
download | gpsd-d3ca471d22c357d959cd1fcd2caba8d039aa78a4.tar.gz |
make it possible to built a tsip-only gpsd
-rw-r--r-- | libgpsd_core.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libgpsd_core.c b/libgpsd_core.c index fc7c256e..415acff5 100644 --- a/libgpsd_core.c +++ b/libgpsd_core.c @@ -201,7 +201,10 @@ static void *gpsd_ppsmonitor(void *arg) } else if (cycle > 999000 && cycle < 1001000 ) { /* looks like PPS pulse or square wave */ if (duration > 499000 && duration < 501000 - && session->driver.nmea.ignore_trailing_edge) { +#ifdef GPSCLOCK_ENABLE + && session->driver.nmea.ignore_trailing_edge +#endif /* GPSCLOCK_ENABLE */ + ) { /* looks like 1.0 Hz square wave, ignore trailing edge */ if (state == 1) { (void)ntpshm_pps(session, &tv); |