diff options
Diffstat (limited to 'libgps_json.c')
-rw-r--r-- | libgps_json.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libgps_json.c b/libgps_json.c index 09141f76..8ffa3434 100644 --- a/libgps_json.c +++ b/libgps_json.c @@ -452,6 +452,17 @@ int libgps_json_unpack(const char *buf, } return status; #endif /* RTCM104V2_ENABLE */ +#ifdef RTCM104V3_ENABLE + } else if (STARTSWITH(classtag, "\"class\":\"RTCM3\"")) { + status = json_rtcm3_read(buf, + gpsdata->dev.path, sizeof(gpsdata->dev.path), + &gpsdata->rtcm3, end); + if (status == 0) { + gpsdata->set &= ~UNION_SET; + gpsdata->set |= RTCM3_SET; + } + return status; +#endif /* RTCM104V3_ENABLE */ #ifdef AIVDM_ENABLE } else if (STARTSWITH(classtag, "\"class\":\"AIS\"")) { status = json_ais_read(buf, |