Skip to content
This repository was archived by the owner on Sep 10, 2024. It is now read-only.

Commit d2d0dc4

Browse files
livius2Daniel Campora
authored andcommitted
L76GNSS.py: Too big buffer to store messages.
As discussed on the forum: https://forum.pycom.io/post/13102
1 parent 7fc49f8 commit d2d0dc4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pytrack/lib/L76GNSS.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ def coordinates(self, debug=False):
7171
break
7272
else:
7373
gc.collect()
74-
if len(nmea) > 4096:
75-
nmea = b''
74+
if len(nmea) > 410: # i suppose it can be safely changed to 82, which is longest NMEA frame
75+
nmea = nmea[-5:] # $GNGL without last L
7676
time.sleep(0.1)
7777
self.timeout_status = True
7878
if debug and debug_timeout:

0 commit comments

Comments
 (0)