only call class xfer callback associated with endpoint address

This commit is contained in:
hathach
2018-07-13 18:01:16 +07:00
parent 1efb552bfd
commit 7a1f40593f
3 changed files with 9 additions and 9 deletions

View File

@@ -208,8 +208,6 @@ tusb_error_t mscd_xfer_cb(uint8_t rhport, uint8_t ep_addr, tusb_event_t event, u
msc_cbw_t const * p_cbw = &p_msc->cbw;
msc_csw_t * p_csw = &p_msc->csw;
VERIFY( (ep_addr == p_msc->ep_out) || (ep_addr == p_msc->ep_in), TUSB_ERROR_INVALID_PARA);
switch (p_msc->stage)
{
case MSC_STAGE_CMD: