summaryrefslogtreecommitdiff
path: root/ais_json.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-10-06 08:50:53 -0400
committerEric S. Raymond <esr@thyrsus.com>2013-10-06 08:50:53 -0400
commit1dfb1154882170136dc633b1781dbddbb8e634c5 (patch)
tree519d7627044f3fcab52bda16e96a71d49b82b383 /ais_json.c
parenta8537e5c3598fb092b7f816be3945921673162d6 (diff)
downloadgpsd-1dfb1154882170136dc633b1781dbddbb8e634c5.tar.gz
Inland AIS full support (untested).
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 70ea6b9a..d92fab5c 100644
--- a/ais_json.c
+++ b/ais_json.c
@@ -402,6 +402,10 @@ int json_ais_read(const char *buf,
status = json_read_object(buf, json_ais8_fid10, endptr);
imo = true;
}
+ if (strstr(buf, "\"fid\":40,") != NULL) {
+ status = json_read_object(buf, json_ais8_fid40, endptr);
+ imo = true;
+ }
}
if (!imo) {
status = json_read_object(buf, json_ais8, endptr);