diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-11-26 04:55:22 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-11-26 04:55:22 +0000 |
commit | 805a81c22888a2f69c31286924a2ede10d3fe59b (patch) | |
tree | fadbc8ad3d8a81152ecac84ee400b1a7d187ec79 /gpsd_json.c | |
parent | ad2de8fb0b85e78f228a605fa5f405b4dd743b10 (diff) | |
download | gpsd-805a81c22888a2f69c31286924a2ede10d3fe59b.tar.gz |
Corrections to the AIS specification, and one fieldname.
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 252a8908..ada31f6f 100644 --- a/gpsd_json.c +++ b/gpsd_json.c @@ -1113,7 +1113,7 @@ void aivdm_json_dump(const struct ais_t *ais, bool scaled, /*@out@*/char *buf, s "\"second\":%u,\"regional\":%u," "\"off_position\":%s,\"raim\":%s," "\"virtual_aid\":%s}\r\n", - NAVAIDTYPE_DISPLAY(ais->type21.type), + NAVAIDTYPE_DISPLAY(ais->type21.aid_type), json_stringify(buf1, sizeof(buf1), ais->type21.name), ais->type21.lon / AIS_LATLON_SCALE, ais->type21.lat / AIS_LATLON_SCALE, @@ -1136,7 +1136,7 @@ void aivdm_json_dump(const struct ais_t *ais, bool scaled, /*@out@*/char *buf, s "\"epfd\":%u,\"second\":%u,\"regional\":%u," "\"off_position\":%s,\"raim\":%s," "\"virtual_aid\":%s}\r\n", - ais->type21.type, + ais->type21.aid_type, ais->type21.name, JSON_BOOL(ais->type21.accuracy), ais->type21.lon, |