diff options
author | Fred Wright <fw@fwright.net> | 2019-03-27 13:49:02 -0700 |
---|---|---|
committer | Fred Wright <fw@fwright.net> | 2019-03-27 20:26:43 -0700 |
commit | f44ab4824d2a2cb6580d1eb8c91f3ff821e6cb37 (patch) | |
tree | 730ec60ab76f123a20c17a2cbbd1b003eed786ab | |
parent | e2d066957943218cd95406d211bf6360a8f5a3a7 (diff) | |
download | gpsd-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-x | ubxtool | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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] |