Skip to content

Commit e52d41c

Browse files
authored
Merge pull request #29 from dherrada/format-adding
Changed code from PR #17 from 64 bytes to 32 bytes
2 parents 1960c04 + 0bc7d32 commit e52d41c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

adafruit_gps.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,12 +187,9 @@ def _parse_sentence(self):
187187
# pylint: disable=len-as-condition
188188
# This needs to be refactored when it can be tested.
189189

190-
# Only continue if we have at least 64 bytes in the input buffer
191-
# I've commented this out for now as not all sentences are 64 bytes long
192-
"""
193-
if self._uart.in_waiting < 64:
190+
# Only continue if we have at least 32 bytes in the input buffer
191+
if self._uart.in_waiting < 32:
194192
return None
195-
"""
196193

197194
sentence = self._uart.readline()
198195
if sentence is None or sentence == b'' or len(sentence) < 1:

0 commit comments

Comments
 (0)