File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ def in_waiting(self):
199
199
return self ._uart .in_waiting
200
200
201
201
def readline (self ):
202
- """Returns a \n terminated bytearray, must have timeout set for
202
+ """Returns a newline terminated bytearray, must have timeout set for
203
203
the underlying UART or this will block forever!"""
204
204
return self ._uart .readline ()
205
205
@@ -467,7 +467,7 @@ def read(self, num_bytes=1):
467
467
for _ in range (num_bytes ):
468
468
with self ._i2c as i2c :
469
469
# we read one byte at a time, verify it isnt part of a string of
470
- # 'stuffed' \n's and then append to our result array for byteification
470
+ # 'stuffed' newlines and then append to our result array for byteification
471
471
i2c .readinto (self ._charbuff )
472
472
char = self ._charbuff [0 ]
473
473
if (char == ord ('\n ' )) and (self ._lastbyte != ord ('\r ' )):
@@ -489,7 +489,7 @@ def in_waiting(self):
489
489
return 32
490
490
491
491
def readline (self ):
492
- """Returns a \n terminated bytearray, must have timeout set for
492
+ """Returns a newline terminated bytearray, must have timeout set for
493
493
the underlying UART or this will block forever!"""
494
494
timeout = time .monotonic () + self ._timeout
495
495
while timeout > time .monotonic ():
You can’t perform that action at this time.
0 commit comments