summaryrefslogtreecommitdiff
path: root/ubxtool
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2019-05-21 15:48:01 -0700
committerGary E. Miller <gem@rellim.com>2019-05-21 15:48:01 -0700
commit8c6fbec40bb33e77ede335d2675eb891540f76a6 (patch)
tree989e6553d1d28607c3199acb1238c73b19aaa71e /ubxtool
parent77ef0b087e03c23ccbe384ed614c13c38f5c1b7b (diff)
downloadgpsd-8c6fbec40bb33e77ede335d2675eb891540f76a6.tar.gz
ubxtool: Fix SFRBX preamble and TOW.
Diffstat (limited to 'ubxtool')
-rwxr-xr-xubxtool4
1 files changed, 2 insertions, 2 deletions
diff --git a/ubxtool b/ubxtool
index 23d1987b..3d7b6eda 100755
--- a/ubxtool
+++ b/ubxtool
@@ -3264,14 +3264,14 @@ class ubx(object):
else:
# LNAV-L
- preamble = words[0] >> 26
+ preamble = words[0] >> 22
subframe = (words[1] >> 8) & 0x07
s += ("\n LNAV-L: preamble %#x TLM %#x ISF %u" %
(preamble, (words[0] >> 8) & 0xffff,
1 if (words[0] & 0x40) else 0))
s += ("\n TOW %u AF %u ASF %u Subframe %u" %
- (words[1] >> 13,
+ ((words[1] >> 13) * 6,
1 if (words[0] & 0x1000) else 0,
1 if (words[0] & 0x800) else 0,
subframe))