This is an automated email from the ASF dual-hosted git repository. pkarashchenko pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push: new a9ad1a336b usbhost_cdcacm: fix error with interrupt IN endpoint. a9ad1a336b is described below commit a9ad1a336b93838472876cf7d5ac2df08b6c394d Author: Satoshi Togawa <git...@t11i.jp> AuthorDate: Thu Jun 16 21:34:36 2022 +0900 usbhost_cdcacm: fix error with interrupt IN endpoint. --- drivers/usbhost/usbhost_cdcacm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usbhost/usbhost_cdcacm.c b/drivers/usbhost/usbhost_cdcacm.c index 22b0f59332..fc45e346b2 100644 --- a/drivers/usbhost/usbhost_cdcacm.c +++ b/drivers/usbhost/usbhost_cdcacm.c @@ -1563,19 +1563,19 @@ static int usbhost_cfgdesc(FAR struct usbhost_cdcacm_s *priv, found |= (USBHOST_CTRLIF_FOUND | USBHOST_INTIN_FOUND); - /* Save the bulk OUT endpoint information */ + /* Save the interrupt IN endpoint information */ iindesc.hport = hport; iindesc.addr = epdesc->addr & USB_EP_ADDR_NUMBER_MASK; - iindesc.in = false; + iindesc.in = true; iindesc.xfrtype = USB_EP_ATTR_XFER_INT; iindesc.interval = epdesc->interval; iindesc.mxpacketsize = usbhost_getle16(epdesc->mxpacketsize); uinfo("Interrupt IN EP addr:%d mxpacketsize:%d\n", - boutdesc.addr, boutdesc.mxpacketsize); + iindesc.addr, iindesc.mxpacketsize); #else found |= USBHOST_CTRLIF_FOUND; #endif