diff options
author | Michael Tatarinov <kukabu@gmail.com> | 2012-06-30 08:55:01 +0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2012-07-01 11:43:08 -0400 |
commit | c5623daa22b0659e90268edd37941e941ae8c56a (patch) | |
tree | 1fbccaf046844e7e558e6f3c1900cd8945d094b9 /subframe.c | |
parent | 5158d66b981a78213af3639084592c9233d857da (diff) | |
download | gpsd-c5623daa22b0659e90268edd37941e941ae8c56a.tar.gz |
Another fix the leap seconds notify.
Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
Diffstat (limited to 'subframe.c')
-rw-r--r-- | subframe.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -723,8 +723,7 @@ gps_mask_t gpsd_interpret_subframe(struct gps_device_t *session, #ifdef NTPSHM_ENABLE /* IS-GPS-200 Revision E, paragraph 20.3.3.5.2.4 */ - if ((subp->sub4_18.WNt == subp->sub4_18.WNlsf) && - ((session->context->gps_week % 256) == (unsigned short)subp->sub4_18.WNlsf) && + if (((session->context->gps_week % 256) == (unsigned short)subp->sub4_18.WNlsf) && /* notify the leap seconds correction in the end of current day */ ((double)((subp->sub4_18.DN - 1) * SECS_PER_DAY) < session->context->gps_tow) && ((double)(subp->sub4_18.DN * SECS_PER_DAY) > session->context->gps_tow)) { |