diff options
author | Gary E. Miller <gem@rellim.com> | 2019-04-11 15:37:30 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2019-04-11 15:37:30 -0700 |
commit | 3228ab692fbdb89f3a1ff4a09f157fa44cb0f6da (patch) | |
tree | a2d05bcfbe18db5d4b65bb7c498bcbb24319da86 /ubxtool | |
parent | 0aecea583832910945854d56770161c8e92565f9 (diff) | |
download | gpsd-3228ab692fbdb89f3a1ff4a09f157fa44cb0f6da.tar.gz |
ubxtool: Don't configure no longer supported messages in protver 27+
Diffstat (limited to 'ubxtool')
-rwxr-xr-x | ubxtool | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -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. |