summaryrefslogtreecommitdiff
path: root/gpsd_json.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-01-24 08:09:34 -0500
committerEric S. Raymond <esr@thyrsus.com>2015-01-24 08:09:34 -0500
commitf64522fa01dc0613d8d923dd387ab2002ad83d43 (patch)
tree7d7abceacfea8644021ae97dd28dc5fa7fe8f53a /gpsd_json.c
parentf1496bc4469a74c43ca39160e95395dacdfb15d4 (diff)
downloadgpsd-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.c7
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);