Handle the closing of endpoints on RP2040
This commit is contained in:
@@ -294,7 +294,9 @@ bool hw_endpoint_xfer_continue(struct hw_endpoint *ep)
|
||||
// Part way through a transfer
|
||||
if (!ep->active)
|
||||
{
|
||||
panic("Can't continue xfer on inactive ep %d %s", tu_edpt_number(ep->ep_addr), ep_dir_string);
|
||||
pico_info("Ignore xfer on inactive ep %d %s", tu_edpt_number(ep->ep_addr), ep_dir_string[tu_edpt_dir(ep->ep_addr)]);
|
||||
_hw_endpoint_lock_update(ep, -1);
|
||||
return false;
|
||||
}
|
||||
|
||||
// Update EP struct from hardware state
|
||||
|
||||
Reference in New Issue
Block a user