summaryrefslogtreecommitdiff
path: root/src/class/msc
diff options
context:
space:
mode:
authorhathach <[email protected]>2020-05-28 11:19:12 +0700
committerhathach <[email protected]>2020-05-28 11:19:12 +0700
commit89a3d1f6d17822bed498b5b872b76348f7c520a2 (patch)
tree31c962879b9f8d9b988064d80e3920633c9851b6 /src/class/msc
parent7a15d2e0d25a8fad65c27477c0dbf62bebac2196 (diff)
update hid open()
Diffstat (limited to 'src/class/msc')
-rw-r--r--src/class/msc/msc_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class/msc/msc_device.c b/src/class/msc/msc_device.c
index 0ae25f89a..c3ce495e1 100644
--- a/src/class/msc/msc_device.c
+++ b/src/class/msc/msc_device.c
@@ -165,7 +165,7 @@ uint16_t mscd_open(uint8_t rhport, tusb_desc_interface_t const * itf_desc, uint1
enum { _MSC_DRIVER_LEN = sizeof(tusb_desc_interface_t) + 2*sizeof(tusb_desc_endpoint_t) };
// Max length mus be at least 1 interface + 2 endpoints
- TU_VERIFY(max_len >= _MSC_DRIVER_LEN, 0);
+ TU_ASSERT(max_len >= _MSC_DRIVER_LEN, 0);
mscd_interface_t * p_msc = &_mscd_itf;
p_msc->itf_num = itf_desc->bInterfaceNumber;