summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFred Wright <fw@fwright.net>2019-03-27 13:49:02 -0700
committerFred Wright <fw@fwright.net>2019-03-27 20:26:43 -0700
commitf44ab4824d2a2cb6580d1eb8c91f3ff821e6cb37 (patch)
tree730ec60ab76f123a20c17a2cbbd1b003eed786ab
parente2d066957943218cd95406d211bf6360a8f5a3a7 (diff)
downloadgpsd-f44ab4824d2a2cb6580d1eb8c91f3ff821e6cb37.tar.gz
ubxtool: Adds commas to raw payload output.
This both improves the readability of the raw dump, and formats it such that it can be fed back to a subsequent -c command, making incremental settings tweaks easier. Unfortunately, verbosity 5 is needed to see this; the verbosity meanings are not very well organized. Filtering the output with grep is helpful. TESTED: Tested on LEA-6S, LEA-M8F, LEA-M8T, and LEA-M8N
-rwxr-xr-xubxtool2
1 files changed, 1 insertions, 1 deletions
diff --git a/ubxtool b/ubxtool
index 884295de..b73c74ee 100755
--- a/ubxtool
+++ b/ubxtool
@@ -1526,7 +1526,7 @@ class ubx(object):
chk[0], chk[1]))
s_payload = ''.join('{:02x} '.format(x) for x in m_payload)
- x_payload = binascii.hexlify(m_payload)
+ x_payload = ','.join(['%02x' % x for x in m_payload])
if m_class in self.classes:
this_class = self.classes[m_class]