summaryrefslogtreecommitdiff
path: root/ubxtool
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2019-04-11 15:37:30 -0700
committerGary E. Miller <gem@rellim.com>2019-04-11 15:37:30 -0700
commit3228ab692fbdb89f3a1ff4a09f157fa44cb0f6da (patch)
treea2d05bcfbe18db5d4b65bb7c498bcbb24319da86 /ubxtool
parent0aecea583832910945854d56770161c8e92565f9 (diff)
downloadgpsd-3228ab692fbdb89f3a1ff4a09f157fa44cb0f6da.tar.gz
ubxtool: Don't configure no longer supported messages in protver 27+
Diffstat (limited to 'ubxtool')
-rwxr-xr-xubxtool14
1 files changed, 8 insertions, 6 deletions
diff --git a/ubxtool b/ubxtool
index 06fd2a26..31870170 100755
--- a/ubxtool
+++ b/ubxtool
@@ -3174,9 +3174,10 @@ class ubx(object):
else:
rate_s = 0
- # UBX-NAV-SBAS
- m_data = bytearray([0x01, 0x32, rate_s])
- gps_model.gps_send(6, 1, m_data)
+ if 27 > opts['protver']:
+ # UBX-NAV-SBAS, gone in protver 27
+ m_data = bytearray([0x01, 0x32, rate_s])
+ gps_model.gps_send(6, 1, m_data)
# get Satellite Information
if 15 > opts['protver']:
@@ -3192,9 +3193,10 @@ class ubx(object):
m_data = bytearray([0x01, 0x35, rate_s])
gps_model.gps_send(6, 1, m_data)
- # UBX-NAV-SVINFO turn it off, if we can
- m_data = bytearray([0x01, 0x30, 0])
- gps_model.gps_send(6, 1, m_data)
+ if 27 > opts['protver']:
+ # UBX-NAV-SVINFO turn it off, if we can
+ m_data = bytearray([0x01, 0x30, 0])
+ gps_model.gps_send(6, 1, m_data)
# UBX-NAV-EOE, end of epoch.
# do not bother with EOE until gpsd works with it.