8000 shared-bindings: Clarify that UART.read() is slow. (#209) · russbot/circuitpython@aa700a8 · GitHub
[go: up one dir, main page]

Skip to content

Commit aa700a8

Browse files
tannewtdhalbert
authored andcommitted
shared-bindings: Clarify that UART.read() is slow. (adafruit#209)
1 parent 447a4b1 commit aa700a8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

shared-bindings/busio/UART.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(busio_uart___exit___obj, 4, 4, busio_
147147
//| .. method:: read(nbytes=None)
148148
//|
149149
//| Read characters. If ``nbytes`` is specified then read at most that many
150-
< 61CD span class=pl-c>//| bytes. Otherwise, read everything that has been buffered.
150+
//| bytes. Otherwise, read everything that arrives until the connection
151+
//| times out. Providing the number of bytes expected is highly recommended
152+
//| because it will be faster.
151153
//|
152154
//| :return: Data read
153155
//| :rtype: bytes or None

0 commit comments

Comments
 (0)
0