From 1223dda6e36ac123e9b68148ed7a0e12d9c5a439 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 18 Apr 2011 21:15:25 -0400 Subject: In AIS, support for message class 8 dac=1 fid=29. --- ais_json.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ais_json.c') diff --git a/ais_json.c b/ais_json.c index ad0f5ee0..67126a3d 100644 --- a/ais_json.c +++ b/ais_json.c @@ -117,7 +117,11 @@ int json_ais_read(const char *buf, status = json_read_object(buf, json_ais7, endptr); } else if (strstr(buf, "\"type\":8,") != NULL) { bool imo = false; - if (strstr(buf, "\"fid\":31,") != NULL || strstr(buf, "\"fid\":11,") != NULL) { + if (strstr(buf, "\"fid\":29,") != NULL) { + status = json_read_object(buf, json_ais8_fid29, endptr); + imo = true; + } + else if (strstr(buf, "\"fid\":31,") != NULL || strstr(buf, "\"fid\":11,") != NULL) { status = json_read_object(buf, json_ais8_fid31, endptr); imo = true; } -- cgit v1.2.1