summaryrefslogtreecommitdiff
path: root/ais_json.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-05-04 06:27:56 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-05-04 06:27:56 -0400
commit3429bc24f73ac88124960c370f830f7954ad6e80 (patch)
treeb20a716ffd843d74dafeac01cd6b0ce69c2d965f /ais_json.c
parent4ca34dc763685581683de04c1b754141b6b62b67 (diff)
downloadgpsd-3429bc24f73ac88124960c370f830f7954ad6e80.tar.gz
In AIS, support for IMO236 type 8 DAC = 1 FID = 15
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 1ac2f398..4d22a2bf 100644
--- a/ais_json.c
+++ b/ais_json.c
@@ -224,6 +224,10 @@ int json_ais_read(const char *buf,
}
imo = true;
}
+ else if (strstr(buf, "\"fid\":15,") != NULL) {
+ status = json_read_object(buf, json_ais8_fid15, endptr);
+ imo = true;
+ }
else if (strstr(buf, "\"fid\":29,") != NULL) {
status = json_read_object(buf, json_ais8_fid29, endptr);
imo = true;