diff options
author | Gary E. Miller <gem@rellim.com> | 2016-04-06 12:33:16 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2016-04-06 12:33:16 -0700 |
commit | 03ccdb974dfb8f80851cb17648b4ca6658d91e22 (patch) | |
tree | c8d4e6fdd61e8447f02dd30aaa8b0e83cf17af61 /net_ntrip.c | |
parent | 2c060d378cec34c8699c4af114c2217832127c2b (diff) | |
download | gpsd-03ccdb974dfb8f80851cb17648b4ca6658d91e22.tar.gz |
Accept RTCM 3.1 and RTCM 3.2 over ntrip://
I'm not sure if gpsd can really decode 3.1 or 3.2, but at least try to.
Diffstat (limited to 'net_ntrip.c')
-rw-r--r-- | net_ntrip.c | 6 |
1 files changed, 5 insertions, 1 deletions
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; } |