Return USBD_NORMAL_COMPLETION instead of a hard coded 0.
This commit is contained in:
parent
64f5c79806
commit
01935a1863
@ -325,7 +325,7 @@ usbd_transfer(usbd_xfer_handle xfer)
|
||||
}
|
||||
|
||||
if (!(xfer->flags & USBD_SYNCHRONOUS))
|
||||
return (xfer->done ? 0 : USBD_IN_PROGRESS);
|
||||
return (xfer->done ? USBD_NORMAL_COMPLETION : USBD_IN_PROGRESS);
|
||||
|
||||
/* Sync transfer, wait for completion. */
|
||||
s = splusb();
|
||||
|
Loading…
x
Reference in New Issue
Block a user