diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-10-06 08:50:53 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-10-06 08:50:53 -0400 |
commit | 1dfb1154882170136dc633b1781dbddbb8e634c5 (patch) | |
tree | 519d7627044f3fcab52bda16e96a71d49b82b383 /ais_json.c | |
parent | a8537e5c3598fb092b7f816be3945921673162d6 (diff) | |
download | gpsd-1dfb1154882170136dc633b1781dbddbb8e634c5.tar.gz |
Inland AIS full support (untested).
Diffstat (limited to 'ais_json.c')
-rw-r--r-- | ais_json.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |