summaryrefslogtreecommitdiff
path: root/libgpsd_core.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2011-03-23 22:23:19 -0700
committerGary E. Miller <gem@rellim.com>2011-03-23 22:23:19 -0700
commitf59fc6b9ca05a22636a066bbf89df07f99830d27 (patch)
tree5b23d69984c4e490cefa3cb6661941985d246c42 /libgpsd_core.c
parentb822acc175a863073373e86a302a8d083476e3dc (diff)
downloadgpsd-f59fc6b9ca05a22636a066bbf89df07f99830d27.tar.gz
PPSTIME_IS and CLEAR_IS may be in the first packet.
Diffstat (limited to 'libgpsd_core.c')
-rw-r--r--libgpsd_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgpsd_core.c b/libgpsd_core.c
index 7889208e..7a6a484f 100644
--- a/libgpsd_core.c
+++ b/libgpsd_core.c
@@ -923,7 +923,7 @@ gps_mask_t gpsd_poll(struct gps_device_t *session)
*/
if ((received & CLEAR_IS)!=0)
session->ship_to_ntpd = false;
- else if ((received & PPSTIME_IS)!=0)
+ if ((received & PPSTIME_IS)!=0)
session->ship_to_ntpd = true;
/*
* Only update the NTP time if we've seen the leap-seconds data.