We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa27861 commit d4415ffCopy full SHA for d4415ff
adafruit_gps.py
@@ -187,14 +187,12 @@ def _parse_sentence(self):
187
# pylint: disable=len-as-condition
188
# This needs to be refactored when it can be tested.
189
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:
+ # Only continue if we have at least 32 bytes in the input buffer
+ if self._uart.in_waiting < 32:
194
return None
195
196
197
sentence = self._uart.readline()
+ print(len(sentence))
198
if sentence is None or sentence == b'' or len(sentence) < 1:
199
200
try:
0 commit comments