summaryrefslogtreecommitdiff
path: root/ais_json.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-04-20 17:44:16 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-04-20 17:44:16 -0400
commit0a1c0519d81e2aa53cde6736a2d3611038e985cf (patch)
tree09fcdf728d051beabc3443127e01e9acaffce7b1 /ais_json.c
parent65bfe8487a68e9910764d2cf1d93a8aef19c22c0 (diff)
downloadgpsd-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.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ais_json.c b/ais_json.c
index 88c814a6..1b0828d7 100644
--- a/ais_json.c
+++ b/ais_json.c
@@ -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;