diff options
-rw-r--r-- | gpsd.h-tail | 4 | ||||
-rw-r--r-- | net_ntrip.c | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gpsd.h-tail b/gpsd.h-tail index 05de18ad..b79575af 100644 --- a/gpsd.h-tail +++ b/gpsd.h-tail @@ -422,7 +422,9 @@ struct ntrip_stream_t fmt_rtcm2_1, fmt_rtcm2_2, fmt_rtcm2_3, - fmt_rtcm3, + fmt_rtcm3_0, + fmt_rtcm3_1, + fmt_rtcm3_2, fmt_unknown } format; int carrier; diff --git a/net_ntrip.c b/net_ntrip.c index f4a974b5..fe651e59 100644 --- a/net_ntrip.c +++ b/net_ntrip.c @@ -90,7 +90,11 @@ static void ntrip_str_parse(char *str, size_t len, else if (strcasecmp("RTCM1_", s) == 0) hold->format = fmt_rtcm2_3; else if (strcasecmp("RTCM 3.0", s) == 0) - hold->format = fmt_rtcm3; + hold->format = fmt_rtcm3_0; + else if (strcasecmp("RTCM 3.1", s) == 0) + hold->format = fmt_rtcm3_1; + else if (strcasecmp("RTCM 3.2", s) == 0) + hold->format = fmt_rtcm3_2; else hold->format = fmt_unknown; } |