diff options
author | Gary E. Miller <gem@rellim.com> | 2018-11-06 12:31:42 -0800 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2018-11-06 12:31:42 -0800 |
commit | 7177deaf599901b43ff2a7617e2590cb26752b21 (patch) | |
tree | 45cc42bea7b9f1a695d8c4d48cfa1a9810d2e389 /gpsd_json.c | |
parent | f5b3b49f0f4befd1de0903a58a5da24a31c65a41 (diff) | |
download | gpsd-7177deaf599901b43ff2a7617e2590cb26752b21.tar.gz |
rawdata: Add locktime field.
So a client can see Carrier Phase slips.
Diffstat (limited to 'gpsd_json.c')
-rw-r--r-- | gpsd_json.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gpsd_json.c b/gpsd_json.c index d782957c..4840c389 100644 --- a/gpsd_json.c +++ b/gpsd_json.c @@ -748,10 +748,11 @@ void json_raw_dump(const struct gps_data_t *gpsdata, } str_appendf(reply, replylen, "{\"gnssid\":%d,\"svid\":%d,\"snr\":%d,\"freqid\":%d," - "\"obs\":\"%3s\",\"lli\":%1d", + "\"obs\":\"%3s\",\"lli\":%1d,\"locktime\":%5d", gpsdata->raw.meas[i].gnssid, gpsdata->raw.meas[i].svid, gpsdata->raw.meas[i].snr, gpsdata->raw.meas[i].freqid, - gpsdata->raw.meas[i].obs_code, gpsdata->raw.meas[i].lli); + gpsdata->raw.meas[i].obs_code, gpsdata->raw.meas[i].lli, + gpsdata->raw.meas[i].locktime); comma = true; if (0 != isfinite(gpsdata->raw.meas[i].carrierphase)) { |