summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcontrib/ubxtool15
1 files changed, 13 insertions, 2 deletions
diff --git a/contrib/ubxtool b/contrib/ubxtool
index 1494c356..2e3c3512 100755
--- a/contrib/ubxtool
+++ b/contrib/ubxtool
@@ -156,7 +156,7 @@ class ubx(object):
s += 'pdwnOnSCD '
if u[0] & 0x10:
s += 'recovery '
- s += (')\npinSwitch: %d, pinSCD: %d, pinOCD: %d reconfig: %d\n' %
+ s += (')\n pinSwitch: %d, pinSCD: %d, pinOCD: %d reconfig: %d\n' %
(u[1] & 0x1f, (u[1] >> 5) & 0x1f, (u[1] >> 10) & 0x1f,
u[1] >> 15))
return s
@@ -320,9 +320,20 @@ class ubx(object):
if 8 > m_len:
return "Bad Length %s" % m_len
+ values = {0: "Full power",
+ 1: "Balanced",
+ 2: "Interval",
+ 3: "Aggresive with 1Hz",
+ 4: "Aggresive with 2Hz",
+ 5: "Aggresive with 4Hz",
+ 0xff: "Invalid"
+ }
u = struct.unpack_from('<BBHHBB', buf, 0)
s = (' version: %u powerSetupValue: %u'
- ' period: %u onTime: %#x reserved1[ %u %u]' % u)
+ ' period: %u onTime: %#x reserved1[%u %u]' % u)
+ if u[0] in values:
+ s += "\n powerSetupValue: %s" % values[u[0]]
+
return s
def cfg_prt(self, buf):