mirror of
https://github.com/apache/nuttx.git
synced 2026-10-23 14:58:47 +00:00
USB host CDC/ACM fixes. Still kind of buggy
This commit is contained in:
parent
b8483aea40
commit
780c81f130
1 changed files with 4 additions and 4 deletions
|
|
@ -3220,15 +3220,15 @@ static int lpc17_cancel(FAR struct usbhost_driver_s *drvr, usbhost_ep_t ep)
|
|||
irqstate_t flags;
|
||||
int ret = OK;
|
||||
|
||||
DEBUGASSERT(ed != NULL);
|
||||
|
||||
/* These first steps must be atomic as possible */
|
||||
|
||||
flags = irqsave();
|
||||
flags = irqsave();
|
||||
|
||||
/* It might be possible for no transfer to be in progress */
|
||||
/* It is possible there there is no transfer to be in progress */
|
||||
|
||||
DEBUGASSERT(ed != NULL && ed->xfrinfo != NULL);
|
||||
xfrinfo = ed->xfrinfo;
|
||||
|
||||
if (xfrinfo)
|
||||
{
|
||||
/* It would be an usage error to use the interface to try to cancel a
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue