From e5436514a62a3f8f8f269d195e67eb5352fe72bb Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Wed, 29 May 2019 13:16:19 -0700 Subject: ubxtool: Cleaup decodes of UBX-NAV-TIMExxx --- ubxtool | 67 ++++++++++++++++++++++++++++------------------------------------- 1 file changed, 29 insertions(+), 38 deletions(-) (limited to 'ubxtool') diff --git a/ubxtool b/ubxtool index 610cdc02..7706ec4d 100755 --- a/ubxtool +++ b/ubxtool @@ -3495,6 +3495,12 @@ class ubx(object): return s + nav_time_valid = { + 1: "towValid", + 2: "weekValid", + 4: "leapValid", + } + def nav_timebds(self, buf): """UBX-NAV-TIMEBDS decode""" m_len = len(buf) @@ -3505,16 +3511,12 @@ class ubx(object): return ".Bad Length %s" % m_len u = struct.unpack_from('