diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-04-20 17:44:16 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-04-20 17:44:16 -0400 |
commit | 0a1c0519d81e2aa53cde6736a2d3611038e985cf (patch) | |
tree | 09fcdf728d051beabc3443127e01e9acaffce7b1 /ais_json.c | |
parent | 65bfe8487a68e9910764d2cf1d93a8aef19c22c0 (diff) | |
download | gpsd-0a1c0519d81e2aa53cde6736a2d3611038e985cf.tar.gz |
Support IMO236 FID 15. And polish the code generator a bit.
Diffstat (limited to 'ais_json.c')
-rw-r--r-- | ais_json.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -110,6 +110,10 @@ int json_ais_read(const char *buf, status = json_read_object(buf, json_ais6_fid12, endptr); imo = true; } + else if (strstr(buf, "\"fid\":15,") != NULL) { + status = json_read_object(buf, json_ais6_fid15, endptr); + imo = true; + } else if (strstr(buf, "\"fid\":16,") != NULL) { status = json_read_object(buf, json_ais6_fid16, endptr); imo = true; |