summaryrefslogtreecommitdiff
path: root/src/class/usbtmc
diff options
context:
space:
mode:
authorhathach <[email protected]>2020-04-26 14:51:44 +0700
committerhathach <[email protected]>2020-04-26 14:51:44 +0700
commit017c95037f3173455fa09efae6093d56fd3f3d1a (patch)
tree37e5eb03f99c95ca9ebdb69c0bf6c8b263342492 /src/class/usbtmc
parentf1ecda392ffcc0c114269c3b6c318a2d0a50e2f5 (diff)
add usbd edpt open
- RTT mode is blocking to prevent log lost - Improve logging message
Diffstat (limited to 'src/class/usbtmc')
-rw-r--r--src/class/usbtmc/usbtmc_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class/usbtmc/usbtmc_device.c b/src/class/usbtmc/usbtmc_device.c
index abe26ced3..b14135146 100644
--- a/src/class/usbtmc/usbtmc_device.c
+++ b/src/class/usbtmc/usbtmc_device.c
@@ -309,7 +309,7 @@ bool usbtmcd_open_cb(uint8_t rhport, tusb_desc_interface_t const * itf_desc, uin
default:
TU_ASSERT(false);
}
- TU_VERIFY( dcd_edpt_open(rhport, ep_desc));
+ TU_VERIFY( usbd_edpt_open(rhport, ep_desc));
found_endpoints++;
}
(*p_length) = (uint8_t)((*p_length) + p_desc[DESC_OFFSET_LEN]);