Skip to content

Commit b6dbc47

Browse files
pi-anldpgeorge
authored andcommitted
extmod/machine_usb_device: Add exception text wrappers.
Required in MICROPY_PREVIEW_VERSION_2. Signed-off-by: Andrew Leech <[email protected]>
1 parent 7c7a9bd commit b6dbc47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extmod/machine_usb_device.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ static mp_obj_t usb_device_submit_xfer(mp_obj_t self, mp_obj_t ep, mp_obj_t buff
108108
//
109109
// This C layer doesn't otherwise keep track of which endpoints the host
110110
// is aware of (or not).
111-
mp_raise_ValueError("ep");
111+
mp_raise_ValueError(MP_ERROR_TEXT("ep"));
112112
}
113113

114114
if (!usbd_edpt_claim(USBD_RHPORT, ep_addr)) {

0 commit comments

Comments
 (0)