diff options
author | Gary E. Miller <gem@rellim.com> | 2018-10-29 18:28:19 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2018-10-29 18:29:06 -0700 |
commit | 7f0f0bf02ad171506d2f777540559ce6952a4d89 (patch) | |
tree | 4f57c5e2a7f683997817be5e5e3d2bf5e7f29414 /gpsd_json.c | |
parent | 27df7583e3e07f2392cb0319604caa48461b2ba5 (diff) | |
download | gpsd-7f0f0bf02ad171506d2f777540559ce6952a4d89.tar.gz |
gpsd_json: Add freqid and obs (obs_code) to RAW message.
Diffstat (limited to 'gpsd_json.c')
-rw-r--r-- | gpsd_json.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gpsd_json.c b/gpsd_json.c index cc25b6da..36a17331 100644 --- a/gpsd_json.c +++ b/gpsd_json.c @@ -742,9 +742,12 @@ void json_raw_dump(const struct gps_data_t *gpsdata, if (0 == gpsdata->raw.meas[i].svid) { continue; } - str_appendf(reply, replylen, "{\"gnssid\":%d,\"svid\":%d,\"snr\":%d", + str_appendf(reply, replylen, + "{\"gnssid\":%d,\"svid\":%d,\"snr\":%d,\"freqid\":%d," + "\"obs\":\"%3s\"", gpsdata->raw.meas[i].gnssid, gpsdata->raw.meas[i].svid, - gpsdata->raw.meas[i].snr); + gpsdata->raw.meas[i].snr, gpsdata->raw.meas[i].freqid, + gpsdata->raw.meas[i].obs_code); comma = true; if (0 != isfinite(gpsdata->raw.meas[i].carrierphase)) { |