diff options
| author | hathach <[email protected]> | 2020-09-06 11:49:00 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2020-09-06 11:49:00 +0700 |
| commit | 15ad585e674f14e247aa7e5f42fb84f90f14be8b (patch) | |
| tree | d53288f40e6219662180ea1cf9b3fe4b97fda16c /src/host/hub.c | |
| parent | 9a6d7c648e3f41529fad2e2af7e01dc5c56003ac (diff) | |
replacing hcd_pipe_xfer by usbh_edpt_xfer
Diffstat (limited to 'src/host/hub.c')
| -rw-r--r-- | src/host/hub.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/host/hub.c b/src/host/hub.c index db1ca0786..abec20d06 100644 --- a/src/host/hub.c +++ b/src/host/hub.c @@ -167,8 +167,8 @@ bool hub_open(uint8_t rhport, uint8_t dev_addr, tusb_desc_interface_t const *itf TU_ASSERT( usbh_control_xfer( dev_addr, &request, NULL ) ); } - //------------- Queue the initial Status endpoint transfer -------------// - TU_ASSERT( hcd_pipe_xfer(dev_addr, hub_data[dev_addr-1].ep_status, &hub_data[dev_addr-1].status_change, 1, true) ); + // Queue notification status endpoint + TU_ASSERT( usbh_edpt_xfer(dev_addr, hub_data[dev_addr-1].ep_status, &hub_data[dev_addr-1].status_change, 1) ); return true; } |
