summaryrefslogtreecommitdiff
path: root/subframe.c
diff options
context:
space:
mode:
authorMichael Tatarinov <kukabu@gmail.com>2012-06-30 08:55:01 +0400
committerEric S. Raymond <esr@thyrsus.com>2012-07-01 11:43:08 -0400
commitc5623daa22b0659e90268edd37941e941ae8c56a (patch)
tree1fbccaf046844e7e558e6f3c1900cd8945d094b9 /subframe.c
parent5158d66b981a78213af3639084592c9233d857da (diff)
downloadgpsd-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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/subframe.c b/subframe.c
index dcd6d2e8..a8eebf1e 100644
--- a/subframe.c
+++ b/subframe.c
@@ -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)) {