diff options
author | Gary E. Miller <gem@rellim.com> | 2015-03-30 17:19:14 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2015-03-30 17:19:14 -0700 |
commit | f6fbc5985a349874d92234c7c89bd634f9020b2f (patch) | |
tree | 3b7371eccc49bf9f85c40b1e2073e235cea63604 /ppsthread.c | |
parent | 0e877afa8447b5b4e3d93537228735287ec6e97b (diff) | |
download | gpsd-f6fbc5985a349874d92234c7c89bd634f9020b2f.tar.gz |
Stupid typo in KPPS logic. TPPS was running when KPPS was good.
Diffstat (limited to 'ppsthread.c')
-rw-r--r-- | ppsthread.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ppsthread.c b/ppsthread.c index 54fd8b9b..5303dada 100644 --- a/ppsthread.c +++ b/ppsthread.c @@ -662,7 +662,7 @@ static void *gpsd_ppsmonitor(void *arg) #if defined(HAVE_SYS_TIMEPPS_H) /* get RFC2783 features supported */ pps_caps = 0; - if ( 0 <= thread_context->kernelpps_handle ) { + if ( 0 >= thread_context->kernelpps_handle ) { /* no pps handle to use, thus no caps */ pps_caps = 0; } else if ( 0 > time_pps_getcap(thread_context->kernelpps_handle, &pps_caps)) { @@ -686,6 +686,7 @@ static void *gpsd_ppsmonitor(void *arg) thread_context->devicename); pps_canwait = true; } + #endif /* HAVE_SYS_TIMEPPS_H */ if ( not_a_tty && !pps_canwait ) { |