diff options
author | Gary E. Miller <gem@rellim.com> | 2018-11-05 12:48:39 -0800 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2018-11-05 12:48:39 -0800 |
commit | 2a111a141c56646a86c73e23fa0ddde571b60aa9 (patch) | |
tree | e0fd84cb8b00235e4cff54e9f63ce121d5108337 /gpsd_json.c | |
parent | 74fa2f71ac73127f1c9a05db9d795a241fa8e56d (diff) | |
download | gpsd-2a111a141c56646a86c73e23fa0ddde571b60aa9.tar.gz |
rawdata: Add lli to JSON data, use NAN for invalid cpMeas and prMeas
Diffstat (limited to 'gpsd_json.c')
-rw-r--r-- | gpsd_json.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gpsd_json.c b/gpsd_json.c index 2c6e87b2..2f98e17f 100644 --- a/gpsd_json.c +++ b/gpsd_json.c @@ -744,10 +744,10 @@ void json_raw_dump(const struct gps_data_t *gpsdata, } str_appendf(reply, replylen, "{\"gnssid\":%d,\"svid\":%d,\"snr\":%d,\"freqid\":%d," - "\"obs\":\"%3s\"", + "\"obs\":\"%3s\",\"lli\":%1d", 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].obs_code, gpsdata->raw.meas[i].lli); comma = true; if (0 != isfinite(gpsdata->raw.meas[i].carrierphase)) { |