summaryrefslogtreecommitdiff
path: root/driver_zodiac.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-01-17 17:00:13 -0500
committerEric S. Raymond <esr@thyrsus.com>2011-01-17 17:00:13 -0500
commit7bcd4c44942921b6fd4461646ce9e50022b553ee (patch)
tree41c81c161f6051de3dc9c108e4e458f001e7ec72 /driver_zodiac.c
parent9bf89b3ce6e6d330bd1c1fa12a92715baa59cd8c (diff)
downloadgpsd-7bcd4c44942921b6fd4461646ce9e50022b553ee.tar.gz
Properly record when we get a valid leap second.
Diffstat (limited to 'driver_zodiac.c')
-rw-r--r--driver_zodiac.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/driver_zodiac.c b/driver_zodiac.c
index 9d4ae87e..6bb78123 100644
--- a/driver_zodiac.c
+++ b/driver_zodiac.c
@@ -337,8 +337,10 @@ static void handle1108(struct gps_device_t *session)
/* sequence = getzword(8); */
/* utc_week_seconds = getzlong(14); */
/* leap_nanoseconds = getzlong(17); */
- if ((int)(getzword(19) & 3) == 3)
+ if ((int)(getzword(19) & 3) == 3) {
+ session->context->valid |= LEAP_SECOND_VALID;
session->context->leap_seconds = (int)getzword(16);
+ }
}
static gps_mask_t zodiac_analyze(struct gps_device_t *session)