summaryrefslogtreecommitdiff
path: root/driver_ubx.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-03-26 20:32:31 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-03-26 20:32:31 -0400
commit81670f70953c4f99730c51bd17fb0c8a65972fe1 (patch)
tree4bcb44628916539218a8396162ae8ab6f5d5ff73 /driver_ubx.c
parentd291c817be12a3472618d04897d967037bbc7192 (diff)
downloadgpsd-81670f70953c4f99730c51bd17fb0c8a65972fe1.tar.gz
Clear up some confusion about *_SET vs.. *_IS defines.
*_SET masks are library-side and for the set member of the fisx structure. *_IS masks are daemon-side and used only in the status mask returned by the packet analyzer methods, and code in the core library that uses same. Never the twain shall meet. All regression tests pass.
Diffstat (limited to 'driver_ubx.c')
-rw-r--r--driver_ubx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver_ubx.c b/driver_ubx.c
index 275bf1b9..c18245eb 100644
--- a/driver_ubx.c
+++ b/driver_ubx.c
@@ -508,7 +508,7 @@ static gps_mask_t parse_input(struct gps_device_t *session)
}
#ifdef NTPSHM_ENABLE
if (session->context->enable_ntpshm
- && 0 != (st & TIME_SET)
+ && 0 != (st & TIME_IS)
&& (session->gpsdata.fix.time != session->last_fixtime)) {
/* FIXME!! this needs an empirical fudge */
(void)ntpshm_put(session, session->gpsdata.fix.time, 0);