diff options
author | Gary E. Miller <gem@rellim.com> | 2017-12-15 18:48:45 -0800 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2017-12-15 18:48:45 -0800 |
commit | 57e3efff5cdcd59e7490ea2704f4348b6f485af0 (patch) | |
tree | 6a69bbf9c14092c2213f7c33200aedae135aba49 /net_ntrip.c | |
parent | a78ca3dd80eb73cbdfe90ecab0247ffd3931f410 (diff) | |
download | gpsd-57e3efff5cdcd59e7490ea2704f4348b6f485af0.tar.gz |
Support format strings "RTCM 3", fix bug #52277
Diffstat (limited to 'net_ntrip.c')
-rw-r--r-- | net_ntrip.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net_ntrip.c b/net_ntrip.c index fe651e59..29bf859d 100644 --- a/net_ntrip.c +++ b/net_ntrip.c @@ -89,7 +89,8 @@ static void ntrip_str_parse(char *str, size_t len, /* required for the SAPOS derver in Gemany, confirmed as RTCM2.3 */ else if (strcasecmp("RTCM1_", s) == 0) hold->format = fmt_rtcm2_3; - else if (strcasecmp("RTCM 3.0", s) == 0) + else if ((strcasecmp("RTCM 3", s) == 0) || + (strcasecmp("RTCM 3.0", s) == 0)) hold->format = fmt_rtcm3_0; else if (strcasecmp("RTCM 3.1", s) == 0) hold->format = fmt_rtcm3_1; |