summaryrefslogtreecommitdiff
path: root/subframe.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2015-03-06 17:32:00 -0800
committerGary E. Miller <gem@rellim.com>2015-03-06 17:32:00 -0800
commit8e2682c26186af8fcdc48b4fc8a02685a0ccc6a1 (patch)
treed380e04923e307f3d2f044e4e053b3cbcaeb5c5e /subframe.c
parent959507faec3641809901ef410c6fd047173d7a13 (diff)
downloadgpsd-8e2682c26186af8fcdc48b4fc8a02685a0ccc6a1.tar.gz
FIXME from Hal Murray, only allow leap second notifications in Jun & Dec.
Diffstat (limited to 'subframe.c')
-rw-r--r--subframe.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/subframe.c b/subframe.c
index c7c19a4e..f0b24a4b 100644
--- a/subframe.c
+++ b/subframe.c
@@ -730,6 +730,7 @@ gps_mask_t gpsd_interpret_subframe(struct gps_device_t *session,
#ifdef TIMEHINT_ENABLE
/* IS-GPS-200 Revision E, paragraph 20.3.3.5.2.4 */
+ /* FIXME: only allow LEAPs in June and December */
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) &&