summaryrefslogtreecommitdiff
path: root/ubxtool
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2019-04-16 16:12:25 -0700
committerGary E. Miller <gem@rellim.com>2019-04-16 16:12:25 -0700
commitac4541d974bb3c6b60a18810583bdc35e204033f (patch)
tree3daa1c05e32c5d3f2622af7115ddbf8c240e18b5 /ubxtool
parent286bf190e3a25d21030d63c95c8d41a6d6b040ea (diff)
downloadgpsd-ac4541d974bb3c6b60a18810583bdc35e204033f.tar.gz
ubxtool: Change "-p ANT" to "-p CFG-ANT"
Diffstat (limited to 'ubxtool')
-rwxr-xr-xubxtool12
1 files changed, 3 insertions, 9 deletions
diff --git a/ubxtool b/ubxtool
index 6c00e36f..402758d0 100755
--- a/ubxtool
+++ b/ubxtool
@@ -1522,7 +1522,7 @@ class ubx(object):
s += 'pdwnOnSCD '
if u[0] & 0x10:
s += 'recovery '
- s += (')\n pinSwitch: %d, pinSCD: %d, pinOCD: %d reconfig: %d\n' %
+ s += (')\n pinSwitch: %d, pinSCD: %d, pinOCD: %d reconfig: %d' %
(u[1] & 0x1f, (u[1] >> 5) & 0x1f, (u[1] >> 10) & 0x1f,
u[1] >> 15))
return s
@@ -3525,12 +3525,6 @@ class ubx(object):
m_data = bytearray([0xd, 0x1, rate])
gps_model.gps_send(6, 1, m_data)
- def send_cfg_ant(self):
- """UBX-CFG-ANT, Get Antenna Control Settings"""
-
- m_data = bytearray(0)
- gps_model.gps_send(6, 0x13, m_data)
-
def send_cfg_cfg(self, save_clear):
"""UBX-CFG-CFG, save config"""
@@ -3897,8 +3891,8 @@ class ubx(object):
}
commands = {
# UBX-CFG-ANT, poll antenna config decode
- "ANT": {"command": send_cfg_ant,
- "help": "UBX-CFG-ANT poll antenna config"},
+ "CFG-ANT": {"command": send_poll, "opt": [0x06, 0x13],
+ "help": "UBX-CFG-ANT poll antenna config"},
# UBX-CFG-GNSS poll gnss config
"CFG-GNSS": {"command": send_cfg_gnss,
"help": "UBX-CFG-GNSS poll GNSS config"},