summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
authorNathan Conrad <[email protected]>2019-09-21 12:02:52 -0400
committerNathan Conrad <[email protected]>2019-09-21 12:02:52 -0400
commit55abb3d71763037ffcc4a55c5ecd72c1ef8e47b5 (patch)
treee781632db2f1ecc1e4686cefdf1d59f472e07c6e /src/device
parentaebecf169abff62b022da2c0e70f7416d62c91ef (diff)
Calling EP open with bad parameters should be considered a bug.
Diffstat (limited to 'src/device')
-rw-r--r--src/device/usbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c
index 146da5420..67c5bdebc 100644
--- a/src/device/usbd.c
+++ b/src/device/usbd.c
@@ -804,7 +804,7 @@ bool usbd_open_edpt_pair(uint8_t rhport, uint8_t const* p_desc, uint8_t ep_count
{
tusb_desc_endpoint_t const * desc_ep = (tusb_desc_endpoint_t const *) p_desc;
- TU_VERIFY(TUSB_DESC_ENDPOINT == desc_ep->bDescriptorType && xfer_type == desc_ep->bmAttributes.xfer);
+ TU_ASSERT(TUSB_DESC_ENDPOINT == desc_ep->bDescriptorType && xfer_type == desc_ep->bmAttributes.xfer);
TU_ASSERT(dcd_edpt_open(rhport, desc_ep));
if ( tu_edpt_dir(desc_ep->bEndpointAddress) == TUSB_DIR_IN )