diff options
author | Gary E. Miller <gem@rellim.com> | 2011-03-23 22:23:19 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2011-03-23 22:23:19 -0700 |
commit | f59fc6b9ca05a22636a066bbf89df07f99830d27 (patch) | |
tree | 5b23d69984c4e490cefa3cb6661941985d246c42 /libgpsd_core.c | |
parent | b822acc175a863073373e86a302a8d083476e3dc (diff) | |
download | gpsd-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.c | 2 |
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. |