diff options
| author | Nathan Conrad <[email protected]> | 2019-09-21 12:02:52 -0400 |
|---|---|---|
| committer | Nathan Conrad <[email protected]> | 2019-09-21 12:02:52 -0400 |
| commit | 55abb3d71763037ffcc4a55c5ecd72c1ef8e47b5 (patch) | |
| tree | e781632db2f1ecc1e4686cefdf1d59f472e07c6e | |
| parent | aebecf169abff62b022da2c0e70f7416d62c91ef (diff) | |
Calling EP open with bad parameters should be considered a bug.
| -rw-r--r-- | src/device/usbd.c | 2 |
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 )
|
