From 8c6fbec40bb33e77ede335d2675eb891540f76a6 Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Tue, 21 May 2019 15:48:01 -0700 Subject: ubxtool: Fix SFRBX preamble and TOW. --- ubxtool | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ubxtool') 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)) -- cgit v1.2.1