summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2020-08-11 22:49:48 +0700
committerGitHub <[email protected]>2020-08-11 22:49:48 +0700
commitb0f617ba209110a4d5f144f46ccfc9f2cbfa25e7 (patch)
treeb765320cb3896515e0dccdf83cd626dcced63d16 /src
parenta65a0a7996f7ff4cdd50b8d229fb8f9ea01695d1 (diff)
parent61e96e97cb078a8ae52a2bef107ebefd540603a4 (diff)
Merge pull request #484 from hathach/fix-bt-warning
use usbd_edpt_open in bth driver
Diffstat (limited to 'src')
-rwxr-xr-xsrc/class/bth/bth_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class/bth/bth_device.c b/src/class/bth/bth_device.c
index 04011bcdb..252e20e37 100755
--- a/src/class/bth/bth_device.c
+++ b/src/class/bth/bth_device.c
@@ -121,7 +121,7 @@ uint16_t btd_open(uint8_t rhport, tusb_desc_interface_t const *itf_desc, uint16_
desc_ep = (tusb_desc_endpoint_t const *) tu_desc_next(itf_desc);
TU_ASSERT(TUSB_DESC_ENDPOINT == desc_ep->bDescriptorType && TUSB_XFER_INTERRUPT == desc_ep->bmAttributes.xfer, 0);
- TU_ASSERT(dcd_edpt_open(rhport, desc_ep), 0);
+ TU_ASSERT(usbd_edpt_open(rhport, desc_ep), 0);
_btd_itf.ep_ev = desc_ep->bEndpointAddress;
// Open endpoint pair