diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-04-18 18:42:50 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-04-18 18:42:50 -0400 |
commit | dc951e0111c2d141eb2b33ec8ad50f3a18e9dad0 (patch) | |
tree | c12d0a9b84c0efe5289f371b691e8a1e6d5b8d8e /ais_json.c | |
parent | ef5756b28ac732ff8b001012e4cada4302ff3fda (diff) | |
download | gpsd-dc951e0111c2d141eb2b33ec8ad50f3a18e9dad0.tar.gz |
In AIS, support Text Description - addressed.
Diffstat (limited to 'ais_json.c')
-rw-r--r-- | ais_json.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -102,6 +102,10 @@ int json_ais_read(const char *buf, status = json_read_object(buf, json_ais6_fid32, endptr); imo = true; } + else if (strstr(buf, "\"fid\":30,") != NULL) { + status = json_read_object(buf, json_ais6_fid30, endptr); + imo = true; + } if (!imo) { status = json_read_object(buf, json_ais6, endptr); if (status == 0) |