Skip to content

Commit b84268d

Browse files
committed
docs/pyboard/tutorial: Add "timeout=0" to UART in pass-through example.
Without this the pass-through will pause for 1 second at each character.
1 parent fc48370 commit b84268d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/pyboard/tutorial/pass_through.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ It's as simple as::
1515
if uart.any():
1616
usb.write(uart.read(256))
1717

18-
pass_through(pyb.USB_VCP(), pyb.UART(1, 9600))
18+
pass_through(pyb.USB_VCP(), pyb.UART(1, 9600, timeout=0))

0 commit comments

Comments
 (0)