diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-01-24 08:09:34 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-01-24 08:09:34 -0500 |
commit | f64522fa01dc0613d8d923dd387ab2002ad83d43 (patch) | |
tree | 7d7abceacfea8644021ae97dd28dc5fa7fe8f53a /gpsd_json.c | |
parent | f1496bc4469a74c43ca39160e95395dacdfb15d4 (diff) | |
download | gpsd-f64522fa01dc0613d8d923dd387ab2002ad83d43.tar.gz |
Elminate double dump of yaw from a compass.
A step towards fixing Savannah bug #43789: Dip and mag_x are not
available in gps_data_t
All regression tests pass.
Diffstat (limited to 'gpsd_json.c')
-rw-r--r-- | gpsd_json.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/gpsd_json.c b/gpsd_json.c index a8f8a950..ee4fb708 100644 --- a/gpsd_json.c +++ b/gpsd_json.c @@ -3330,14 +3330,7 @@ void json_att_dump(const struct gps_data_t *gpsdata, "\"roll_st\":\"%c\",", gpsdata->attitude.roll_st); } - if (isnan(gpsdata->attitude.yaw) == 0) { - str_appendf(reply, replylen, - "\"yaw\":%.2f,", gpsdata->attitude.yaw); - if (gpsdata->attitude.yaw_st != '\0') - str_appendf(reply, replylen, - "\"yaw_st\":\"%c\",", gpsdata->attitude.yaw_st); - } if (isnan(gpsdata->attitude.dip) == 0) str_appendf(reply, replylen, "\"dip\":%.3f,", gpsdata->attitude.dip); |