summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-08-23 17:01:43 +1000
committerDamien George <damien.p.george@gmail.com>2017-08-23 17:01:43 +1000
commitb84268d49c1099a193d2fdc92e3831f9eef8b3b3 (patch)
treec5e60cc8bc10ec5ed87327fb31ceddd789896441
parentfc483706d37b2e1a0829d14f019124ecb01f6d6e (diff)
downloadmicropython-b84268d49c1099a193d2fdc92e3831f9eef8b3b3.tar.gz
micropython-b84268d49c1099a193d2fdc92e3831f9eef8b3b3.zip
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.
-rw-r--r--docs/pyboard/tutorial/pass_through.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/pyboard/tutorial/pass_through.rst b/docs/pyboard/tutorial/pass_through.rst
index a94e7363d2..012a907648 100644
--- a/docs/pyboard/tutorial/pass_through.rst
+++ b/docs/pyboard/tutorial/pass_through.rst
@@ -15,4 +15,4 @@ It's as simple as::
if uart.any():
usb.write(uart.read(256))
- pass_through(pyb.USB_VCP(), pyb.UART(1, 9600))
+ pass_through(pyb.USB_VCP(), pyb.UART(1, 9600, timeout=0))