From a9ad1a336b93838472876cf7d5ac2df08b6c394d Mon Sep 17 00:00:00 2001 From: Satoshi Togawa Date: Thu, 16 Jun 2022 21:34:36 +0900 Subject: [PATCH] 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