summaryrefslogtreecommitdiff
path: root/ais_json.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-05-28 09:37:15 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-05-28 09:37:15 -0400
commitfe0e01c42d8555515e9b1cfe11ebcdf35a42c459 (patch)
treebd018c6160a1c34f2b5d16bb27c465e511609b1f /ais_json.c
parentb9f7b38c9408d912f39f5c611de6de25cd19bf01 (diff)
downloadgpsd-fe0e01c42d8555515e9b1cfe11ebcdf35a42c459.tar.gz
In AIS, IMO289 Tidal Window support. All regression tests pass.
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 4b938329..aeb925e5 100644
--- a/ais_json.c
+++ b/ais_json.c
@@ -183,6 +183,10 @@ int json_ais_read(const char *buf,
status = json_read_object(buf, json_ais6_fid30, endptr);
imo = true;
}
+ else if (strstr(buf, "\"fid\":32,") != NULL) {
+ status = json_read_object(buf, json_ais6_fid32, endptr);
+ imo = true;
+ }
}
if (!imo) {
status = json_read_object(buf, json_ais6, endptr);