mirror of
https://github.com/apache/nuttx.git
synced 2026-08-10 15:05:07 +00:00
arch: stm32: fix otghs logic to support interface requests
This commit is contained in:
parent
72b182d3d3
commit
3eb3b0da4d
1 changed files with 2 additions and 1 deletions
|
|
@ -2327,7 +2327,8 @@ static inline void stm32_ep0out_stdrequest(struct stm32_usbdev_s *priv,
|
|||
|
||||
{
|
||||
usbtrace(TRACE_INTDECODE(STM32_TRACEINTID_GETSETDESC), 0);
|
||||
if ((ctrlreq->type & USB_REQ_RECIPIENT_MASK) == USB_REQ_RECIPIENT_DEVICE)
|
||||
if ((ctrlreq->type & USB_REQ_RECIPIENT_MASK) == USB_REQ_RECIPIENT_DEVICE ||
|
||||
(ctrlreq->type & USB_REQ_RECIPIENT_MASK) == USB_REQ_RECIPIENT_INTERFACE)
|
||||
{
|
||||
stm32_req_dispatch(priv, &priv->ctrlreq);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue