revert previous changes, edpt stall also clear any pending (not complete) transfer

This commit is contained in:
hathach
2021-09-01 12:42:45 +07:00
parent ab0c3e8dd0
commit 90dc9bc289
2 changed files with 5 additions and 7 deletions

View File

@@ -323,11 +323,7 @@ bool mscd_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb_control_request_t
if ( p_msc->stage == MSC_STAGE_CMD )
{
// part of reset recovery (probably due to invalid CBW) -> prepare for new command
// Note: skip if already queued previously
if ( usbd_edpt_ready(rhport, p_msc->ep_out) )
{
TU_ASSERT( prepare_cbw(rhport, p_msc) );
}
TU_ASSERT( prepare_cbw(rhport, p_msc) );
}
}
}