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 79c4dcd7..e37a6eee 100644 --- a/libgps_json.c +++ b/libgps_json.c @@ -258,6 +258,13 @@ int libgps_json_unpack(const char *buf, struct gps_data_t *gpsdata) } else if (strstr(buf, "\"class\":\"VERSION\"") != 0) { return json_version_read(buf, gpsdata, NULL); + } else if (strstr(buf, "\"class\":\"RTCM2\"") != 0) { + status = json_rtcm2_read(buf, + gpsdata->dev.path, sizeof(gpsdata->dev.path), + &gpsdata->rtcm2, NULL); + if (status == 0) + gpsdata->set |= RTCM2_SET; + return status; } else if (strstr(buf, "\"class\":\"ERROR\"") != 0) { return json_error_read(buf, gpsdata, NULL); } else |