File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
# SPDX-FileCopyrightText: 2017 Tony DiCola for Adafruit Industries
2
+ # SPDX-FileCopyrightText: 2021 James Carr
2
3
#
3
4
# SPDX-License-Identifier: MIT
4
5
@@ -344,8 +345,8 @@ def _read_sentence(self):
344
345
# pylint: disable=len-as-condition
345
346
# This needs to be refactored when it can be tested.
346
347
347
- # Only continue if we have at least 32 bytes in the input buffer
348
- if self .in_waiting < 32 :
348
+ # Only continue if we have at least 11 bytes in the input buffer
349
+ if self .in_waiting < 11 :
349
350
return None
350
351
351
352
sentence = self .readline ()
@@ -679,9 +680,9 @@ def write(self, bytestr):
679
680
680
681
@property
681
682
def in_waiting (self ):
682
- """Returns number of bytes available in UART read buffer, always 32
683
+ """Returns number of bytes available in UART read buffer, always 16
683
684
since I2C does not have the ability to know how much data is available"""
684
- return 32
685
+ return 16
685
686
686
687
def readline (self ):
687
688
"""Returns a newline terminated bytearray, must have timeout set for
You can’t perform that action at this time.
0 commit comments