From c30df5828df493e5391b17dfc36a80fe5dfd955b Mon Sep 17 00:00:00 2001 From: Calvin McCoy Date: Sat, 19 May 2018 17:56:47 -0700 Subject: [PATCH] Fix GSV Parsing of Full Final Sentences --- micropyGPS.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/micropyGPS.py b/micropyGPS.py index 3c468c8..59dcd60 100644 --- a/micropyGPS.py +++ b/micropyGPS.py @@ -483,7 +483,8 @@ class MicropyGPS(object): # Calculate Number of Satelites to pull data for and thus how many segment positions to read if num_sv_sentences == current_sv_sentence: - sat_segment_limit = ((sats_in_view % 4) * 4) + 4 # Last sentence may have 1-4 satellites + # Last sentence may have 1-4 satellites; 5 - 20 positions + sat_segment_limit = (sats_in_view - ((num_sv_sentences - 1) * 4)) * 5 else: sat_segment_limit = 20 # Non-last sentences have 4 satellites and thus read up to position 20