diff options
author | Gary E. Miller <gem@rellim.com> | 2015-03-06 17:32:00 -0800 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2015-03-06 17:32:00 -0800 |
commit | 8e2682c26186af8fcdc48b4fc8a02685a0ccc6a1 (patch) | |
tree | d380e04923e307f3d2f044e4e053b3cbcaeb5c5e /subframe.c | |
parent | 959507faec3641809901ef410c6fd047173d7a13 (diff) | |
download | gpsd-8e2682c26186af8fcdc48b4fc8a02685a0ccc6a1.tar.gz |
FIXME from Hal Murray, only allow leap second notifications in Jun & Dec.
Diffstat (limited to 'subframe.c')
-rw-r--r-- | subframe.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) && |