Handle the closing of endpoints on RP2040

This commit is contained in:
Valentin Milea
2021-12-04 16:04:48 +02:00
parent 3e9bb3bee1
commit 48e1f6d899
2 changed files with 26 additions and 6 deletions

View File

@@ -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