diff options
author | Gary E. Miller <gem@rellim.com> | 2019-05-21 15:48:01 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2019-05-21 15:48:01 -0700 |
commit | 8c6fbec40bb33e77ede335d2675eb891540f76a6 (patch) | |
tree | 989e6553d1d28607c3199acb1238c73b19aaa71e /ubxtool | |
parent | 77ef0b087e03c23ccbe384ed614c13c38f5c1b7b (diff) | |
download | gpsd-8c6fbec40bb33e77ede335d2675eb891540f76a6.tar.gz |
ubxtool: Fix SFRBX preamble and TOW.
Diffstat (limited to 'ubxtool')
-rwxr-xr-x | ubxtool | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)) |