summaryrefslogtreecommitdiff
path: root/src/class/bth
diff options
context:
space:
mode:
authorhathach <[email protected]>2022-06-02 16:51:17 +0700
committerhathach <[email protected]>2022-06-02 16:51:17 +0700
commit8b9cf152a0dedda573fb3374d8c873dce4b883d1 (patch)
tree1e6236685627b6fdd960e70da54e89aa37fe9fb1 /src/class/bth
parent99c1585ed215cb5ee2e27a41c54310d144e0ee6c (diff)
rhport argument in usbd_ API() is not used (always use the initialized port)
remove the usage of TUD_OPT_RHPORT in class driver
Diffstat (limited to 'src/class/bth')
-rwxr-xr-xsrc/class/bth/bth_device.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/class/bth/bth_device.c b/src/class/bth/bth_device.c
index f40bfbd0d..f96bb3552 100755
--- a/src/class/bth/bth_device.c
+++ b/src/class/bth/bth_device.c
@@ -59,10 +59,12 @@ CFG_TUSB_MEM_SECTION btd_interface_t _btd_itf;
static bool bt_tx_data(uint8_t ep, void *data, uint16_t len)
{
+ uint8_t const rhport = 0;
+
// skip if previous transfer not complete
- TU_VERIFY(!usbd_edpt_busy(TUD_OPT_RHPORT, ep));
+ TU_VERIFY(!usbd_edpt_busy(rhport, ep));
- TU_ASSERT(usbd_edpt_xfer(TUD_OPT_RHPORT, ep, data, len));
+ TU_ASSERT(usbd_edpt_xfer(rhport, ep, data, len));
return true;
}