diff options
| author | Andrew Leech <andrew.leech@planetinnovation.com.au> | 2025-03-26 10:19:40 +1100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-04-22 11:29:32 +1000 |
| commit | b6dbc47664e0b5dc3516f59a24322d26d2ad2617 (patch) | |
| tree | e4d514b0d5e3ff469abe17131064b524711263ae /extmod | |
| parent | 7c7a9bdb344bd83db9bc4e5a41114283a624095c (diff) | |
extmod/machine_usb_device: Add exception text wrappers.
Required in MICROPY_PREVIEW_VERSION_2.
Signed-off-by: Andrew Leech <andrew.leech@planetinnovation.com.au>
Diffstat (limited to 'extmod')
| -rw-r--r-- | extmod/machine_usb_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extmod/machine_usb_device.c b/extmod/machine_usb_device.c index 5c4e84c38..5019cd987 100644 --- a/extmod/machine_usb_device.c +++ b/extmod/machine_usb_device.c @@ -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 // is aware of (or not). - mp_raise_ValueError("ep"); + mp_raise_ValueError(MP_ERROR_TEXT("ep")); } if (!usbd_edpt_claim(USBD_RHPORT, ep_addr)) { |
