diff options
Diffstat (limited to 'libgps_json.c')
-rw-r--r-- | libgps_json.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libgps_json.c b/libgps_json.c index 9382b3f7..f6c89ca7 100644 --- a/libgps_json.c +++ b/libgps_json.c @@ -262,6 +262,13 @@ int libgps_json_unpack(const char *buf, struct gps_data_t *gpsdata) if (status == 0) gpsdata->set |= RTCM2_SET; return status; + } else if (strstr(buf, "\"class\":\"AIS\"") != 0) { + status = json_ais_read(buf, + gpsdata->dev.path, sizeof(gpsdata->dev.path), + &gpsdata->rtcm2, NULL); + if (status == 0) + gpsdata->set |= AIS_SET; + return status; } else if (strstr(buf, "\"class\":\"ERROR\"") != 0) { return json_error_read(buf, gpsdata, NULL); } else |