diff options
| author | hathach <[email protected]> | 2018-12-11 23:57:53 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-12-12 00:00:33 +0700 |
| commit | 67d6d753d66ffb821e9cfc4831d44f6b2f8549b8 (patch) | |
| tree | 0e2a659601fd86f8079f25b1326408307638006a /src/class/cdc | |
| parent | c94df5150308e451baccae2857525d50fe1df232 (diff) | |
replace all hcd pipe close by hcd_device_remove
Diffstat (limited to 'src/class/cdc')
| -rw-r--r-- | src/class/cdc/cdc_host.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/class/cdc/cdc_host.c b/src/class/cdc/cdc_host.c index 53f62d684..159a13990 100644 --- a/src/class/cdc/cdc_host.c +++ b/src/class/cdc/cdc_host.c @@ -233,11 +233,6 @@ void cdch_isr(uint8_t dev_addr, uint8_t ep_addr, xfer_result_t event, uint32_t x void cdch_close(uint8_t dev_addr)
{
cdch_data_t * p_cdc = &cdch_data[dev_addr-1];
-
- hcd_pipe_close(TUH_OPT_RHPORT, dev_addr, p_cdc->ep_notif);
- hcd_pipe_close(TUH_OPT_RHPORT, dev_addr, p_cdc->ep_in);
- hcd_pipe_close(TUH_OPT_RHPORT, dev_addr, p_cdc->ep_out);
-
tu_memclr(p_cdc, sizeof(cdch_data_t));
}
|
