summaryrefslogtreecommitdiff
path: root/docs/tutorial
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-11-29 15:23:21 +0000
committerDamien George <damien.p.george@gmail.com>2014-11-29 15:23:21 +0000
commit19fb1b4dd7173ad2cf4b2bb1b0f0c06498499bd2 (patch)
tree0f557d2d687fad065dd4ad11a3ff3f3b35a83a0f /docs/tutorial
parentb395220ef00ccf9700a37e470f4d4cf021743572 (diff)
stmhal: Add USB_VCP.setinterrupt method, to disable CTRL-C.
Diffstat (limited to 'docs/tutorial')
-rw-r--r--docs/tutorial/pass_through.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/tutorial/pass_through.rst b/docs/tutorial/pass_through.rst
index 309ef58e7..a94e7363d 100644
--- a/docs/tutorial/pass_through.rst
+++ b/docs/tutorial/pass_through.rst
@@ -7,6 +7,7 @@ It's as simple as::
import select
def pass_through(usb, uart):
+ usb.setinterrupt(-1)
while True:
select.select([usb, uart], [], [])
if usb.any():