diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2010-04-12 20:47:08 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2010-04-12 20:47:08 -0400 |
commit | 9c92484458f65cd1c12d7ed9187c531a501bd473 (patch) | |
tree | f5ce9a16db4416e08b0b9e67fe365b307c4a10c8 /libgpsd_core.c | |
parent | 8d9f51502678d22c12e8e1efb9bd74ad225028e7 (diff) | |
download | gpsd-9c92484458f65cd1c12d7ed9187c531a501bd473.tar.gz |
Logic error fix for my big refactoring commit, spotted by gemiller.
All regression tests pass.
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 6e3dee86..6cd87108 100644 --- a/libgpsd_core.c +++ b/libgpsd_core.c @@ -685,7 +685,7 @@ gps_mask_t gpsd_poll(struct gps_device_t *session) */ if (session->context->enable_ntpshm==0) { //gpsd_report(LOG_PROG, "NTP: off\n"); - } else if ((session->gpsdata.set & TIME_IS)==0) { + } else if ((received & TIME_IS)==0) { //gpsd_report(LOG_PROG, "NTP: No time this packet\n"); } else if ( isnan(session->newdata.time) ) { //gpsd_report(LOG_PROG, "NTP: bad new time\n"); |