diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-10-29 08:43:10 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-10-29 08:43:10 -0400 |
commit | 3990da195110459e208e794af2398e10b33d35b1 (patch) | |
tree | f1d17a81ae67f9b34267761d7b4e4cab56c345ff /libgpsd_core.c | |
parent | 28b6d4fbd4419e130e7da3a7f0b7a37e7b0a7abe (diff) | |
download | gpsd-3990da195110459e208e794af2398e10b33d35b1.tar.gz |
Unconditionally enable PPS at startup.
Before this change, ntpshm_init() had an argument depebding on the state of
the -n flag. I think this was some sort of remnant from before we had
the daemon initialization sequence quite right.
The new code works (and ships PPS) whether -n is on or not.
Diffstat (limited to 'libgpsd_core.c')
-rw-r--r-- | libgpsd_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgpsd_core.c b/libgpsd_core.c index 50b18551..22db4b02 100644 --- a/libgpsd_core.c +++ b/libgpsd_core.c @@ -235,7 +235,7 @@ void gps_context_init(struct gps_context_t *context) .shmTime = {0}, .shmTimeInuse = {0}, # ifdef PPS_ENABLE - .shmTimePPS = false, + .shmTimePPS = true, .pps_hook = NULL, # endif /* PPS_ENABLE */ #endif /* NTPSHM_ENABLE */ |