diff options
author | Damien George <damien.p.george@gmail.com> | 2016-12-15 15:51:34 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-12-15 15:51:34 +1100 |
commit | a770ba147edfab6cf060147f6ef47cf19c1c332b (patch) | |
tree | f5e1cc383fa538c346d61a678fb7a5e7542066b9 /stmhal/usbd_cdc_interface.c | |
parent | d89cafd5c30be57db99cbf10993bca00d9f523fb (diff) | |
download | micropython-a770ba147edfab6cf060147f6ef47cf19c1c332b.tar.gz micropython-a770ba147edfab6cf060147f6ef47cf19c1c332b.zip |
stmhal: Use core-provided keyboard exception object.
Diffstat (limited to 'stmhal/usbd_cdc_interface.c')
-rw-r--r-- | stmhal/usbd_cdc_interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/usbd_cdc_interface.c b/stmhal/usbd_cdc_interface.c index 12aa38470c..1f46b9dcc1 100644 --- a/stmhal/usbd_cdc_interface.c +++ b/stmhal/usbd_cdc_interface.c @@ -353,7 +353,7 @@ static int8_t CDC_Itf_Receive(uint8_t* Buf, uint32_t *Len) { if (*src == user_interrupt_char) { char_found = true; // raise exception when interrupts are finished - pendsv_nlr_jump(MP_STATE_PORT(mp_kbd_exception)); + pendsv_nlr_jump(&MP_STATE_VM(mp_kbd_exception)); } else { if (char_found) { *dest = *src; |