extmod/machine_usb_device: Add exception text wrappers.
Required in MICROPY_PREVIEW_VERSION_2. Signed-off-by: Andrew Leech <andrew.leech@planetinnovation.com.au>
This commit is contained in:
committed by
Damien George
parent
7c7a9bdb34
commit
b6dbc47664
@@ -108,7 +108,7 @@ static mp_obj_t usb_device_submit_xfer(mp_obj_t self, mp_obj_t ep, mp_obj_t buff
|
|||||||
//
|
//
|
||||||
// This C layer doesn't otherwise keep track of which endpoints the host
|
// This C layer doesn't otherwise keep track of which endpoints the host
|
||||||
// is aware of (or not).
|
// is aware of (or not).
|
||||||
mp_raise_ValueError("ep");
|
mp_raise_ValueError(MP_ERROR_TEXT("ep"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!usbd_edpt_claim(USBD_RHPORT, ep_addr)) {
|
if (!usbd_edpt_claim(USBD_RHPORT, ep_addr)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user