diff options
-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)) { |