summaryrefslogtreecommitdiffstatshomepage
path: root/teensy/usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'teensy/usb.c')
-rw-r--r--teensy/usb.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/teensy/usb.c b/teensy/usb.c
index a045a2ed69..ab4731f27b 100644
--- a/teensy/usb.c
+++ b/teensy/usb.c
@@ -13,8 +13,13 @@ int usb_vcp_is_enabled(void)
return 1;
}
-int usb_vcp_rx_any(void)
-{
+void usb_vcp_set_interrupt_char(int c) {
+ // The teensy 3.1 usb stack doesn't currently have the notion of generating
+ // an exception when a certain character is received. That just means that
+ // you can't press Control-C and get your python script to stop.
+}
+
+int usb_vcp_rx_num(void) {
return usb_serial_available();
}