diff options
| author | sakumisu <[email protected]> | 2022-09-15 20:46:14 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2022-09-15 20:46:14 +0800 |
| commit | 09c6f2b655c233fa9bdbd1369b52b79536415468 (patch) | |
| tree | fc31481fc114d0f0f3349bd81d6b539f320d676b /class/hub | |
| parent | a1b818b635114a68240f698bfcadfeec1f3382cf (diff) | |
add urb for msc class
Diffstat (limited to 'class/hub')
| -rw-r--r-- | class/hub/usbh_hub.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/class/hub/usbh_hub.c b/class/hub/usbh_hub.c index 892a3eef..2f2ccf69 100644 --- a/class/hub/usbh_hub.c +++ b/class/hub/usbh_hub.c @@ -255,7 +255,7 @@ static void hub_int_complete_callback(void *arg, int nbytes) if (nbytes > 0) { usbh_hub_thread_wakeup(hub); - usbh_submit_urb(&hub->inturb); + usbh_submit_urb(&hub->intin_urb); } } @@ -319,8 +319,8 @@ static int usbh_hub_connect(struct usbh_hubport *hport, uint8_t intf) usbh_hub_register(hub); USB_LOG_INFO("Register HUB Class:%s\r\n", hport->config.intf[intf].devname); - usbh_int_urb_fill(&hub->inturb, hub->intin, hub->int_buffer, 1, 0, hub_int_complete_callback, hub); - usbh_submit_urb(&hub->inturb); + usbh_int_urb_fill(&hub->intin_urb, hub->intin, hub->int_buffer, 1, 0, hub_int_complete_callback, hub); + usbh_submit_urb(&hub->intin_urb); return 0; } |
