summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2018-10-13 18:46:43 -0700
committerGary E. Miller <gem@rellim.com>2018-10-13 18:46:43 -0700
commit1d124f0446f38429df6692f81754a40d2a39e188 (patch)
tree407fd43b0480b86067c5a3aa5995f7525123876c
parent4538174cd4a0f0436ff26c2f8174a92a22b766e5 (diff)
downloadgpsd-1d124f0446f38429df6692f81754a40d2a39e188.tar.gz
ubxtool: Pick either UBX-NAV-SVINFO or UBS-NAV-SAT, disable other.
-rwxr-xr-xubxtool12
1 files changed, 8 insertions, 4 deletions
diff --git a/ubxtool b/ubxtool
index 16990482..879b743d 100755
--- a/ubxtool
+++ b/ubxtool
@@ -1578,14 +1578,18 @@ class ubx(object):
# UBX-NAV-SVINFO - deprecated in protocol 15, gone in 27
m_data = bytearray([0x01, 0x30, rate_s])
gps_model.gps_send(6, 1, m_data)
+
+ # UBX-NAV-SAT turn it off, if we can
+ m_data = bytearray([0x01, 0x35, 0])
+ gps_model.gps_send(6, 1, m_data)
else:
# use UBX-NAV-SAT for protocol 15 and up
m_data = bytearray([0x01, 0x35, rate_s])
gps_model.gps_send(6, 1, m_data)
- if 27 > opts['protocol']:
- # 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-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.