diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-02-20 16:52:53 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-02-20 16:52:53 -0500 |
commit | 54fb5427ed51ec65e620159ab0d0474d43b5145a (patch) | |
tree | bfd13a95e78a03bf0d98d6fe190cb7e40e9a085f /libgps_json.c | |
parent | 54fe1ec39a26c8cef311fdf7963f22252ebf5664 (diff) | |
download | gpsd-54fb5427ed51ec65e620159ab0d0474d43b5145a.tar.gz |
Avoid overexposure of an internal mask. EOF_SET -> EOF_IS
Also, use PPSDRIFT_SET as a client-side status flag for JSON PPS rather
than the (not yet shipped) TIMEDRIFT_SET. Next release we're probably
going to add a drift object for in-line time.
No logic changes. All regression tests pass.
Diffstat (limited to 'libgps_json.c')
-rw-r--r-- | libgps_json.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgps_json.c b/libgps_json.c index f58de8be..156ddf1b 100644 --- a/libgps_json.c +++ b/libgps_json.c @@ -521,7 +521,7 @@ int libgps_json_unpack(const char *buf, status = json_pps_read(buf, gpsdata, end); if (status == 0) { gpsdata->set &= ~UNION_SET; - gpsdata->set |= TIMEDRIFT_SET; + gpsdata->set |= PPSDRIFT_SET; } return status; } else |