summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/usb.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-12-15 15:51:34 +1100
committerDamien George <damien.p.george@gmail.com>2016-12-15 15:51:34 +1100
commita770ba147edfab6cf060147f6ef47cf19c1c332b (patch)
treef5e1cc383fa538c346d61a678fb7a5e7542066b9 /stmhal/usb.c
parentd89cafd5c30be57db99cbf10993bca00d9f523fb (diff)
downloadmicropython-a770ba147edfab6cf060147f6ef47cf19c1c332b.tar.gz
micropython-a770ba147edfab6cf060147f6ef47cf19c1c332b.zip
stmhal: Use core-provided keyboard exception object.
Diffstat (limited to 'stmhal/usb.c')
-rw-r--r--stmhal/usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/usb.c b/stmhal/usb.c
index c6303befb1..95da04aba7 100644
--- a/stmhal/usb.c
+++ b/stmhal/usb.c
@@ -144,7 +144,7 @@ bool usb_vcp_is_enabled(void) {
void usb_vcp_set_interrupt_char(int c) {
if (pyb_usb_flags & PYB_USB_FLAG_DEV_ENABLED) {
if (c != -1) {
- mp_obj_exception_clear_traceback(MP_STATE_PORT(mp_kbd_exception));
+ mp_obj_exception_clear_traceback(MP_OBJ_FROM_PTR(&MP_STATE_VM(mp_kbd_exception)));
}
USBD_CDC_SetInterrupt(c);
}