mirror of
https://github.com/hathach/tinyusb.git
synced 2025-02-19 15:40:41 +00:00
RP2040 HCD: Move invalid ep->active assert in hw_trans_complete. The check for ep->active should only happen if a setup packet was just sent. Otherwise the transaction is handled in hw_handle_buff_status.
This commit is contained in:
parent
c04006bc13
commit
e692fa9ae4
@ -160,12 +160,11 @@ static void hw_handle_buff_status(void)
|
|||||||
|
|
||||||
static void hw_trans_complete(void)
|
static void hw_trans_complete(void)
|
||||||
{
|
{
|
||||||
struct hw_endpoint *ep = &epx;
|
|
||||||
assert(ep->active);
|
|
||||||
|
|
||||||
if (usb_hw->sie_ctrl & USB_SIE_CTRL_SEND_SETUP_BITS)
|
if (usb_hw->sie_ctrl & USB_SIE_CTRL_SEND_SETUP_BITS)
|
||||||
{
|
{
|
||||||
pico_trace("Sent setup packet\n");
|
pico_trace("Sent setup packet\n");
|
||||||
|
struct hw_endpoint *ep = &epx;
|
||||||
|
assert(ep->active);
|
||||||
hw_xfer_complete(ep, XFER_RESULT_SUCCESS);
|
hw_xfer_complete(ep, XFER_RESULT_SUCCESS);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user