summaryrefslogtreecommitdiff
path: root/ais_json.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-05-26 07:12:18 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-05-26 07:12:18 -0400
commitbb242724b92bda67a9bde6be5d6613c4249ec622 (patch)
tree510592072b128cf624b6a1ffd259bf83623a3a96 /ais_json.c
parent2a1e058804bb45db4278dd6875dc690d548e1844 (diff)
downloadgpsd-bb242724b92bda67a9bde6be5d6613c4249ec622.tar.gz
Add support for AIS Marine Traffic Signal message.
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 4d22a2bf..8ab945ae 100644
--- a/ais_json.c
+++ b/ais_json.c
@@ -228,6 +228,10 @@ int json_ais_read(const char *buf,
status = json_read_object(buf, json_ais8_fid15, endptr);
imo = true;
}
+ else if (strstr(buf, "\"fid\":19,") != NULL) {
+ status = json_read_object(buf, json_ais8_fid19, endptr);
+ imo = true;
+ }
else if (strstr(buf, "\"fid\":29,") != NULL) {
status = json_read_object(buf, json_ais8_fid29, endptr);
imo = true;