diff options
| author | Ryzee119 <[email protected]> | 2024-01-09 16:22:54 +1030 |
|---|---|---|
| committer | Ryzee119 <[email protected]> | 2024-01-09 16:36:32 +1030 |
| commit | d39d06e6d920aadc9e479d4dfb8620dd3871cb98 (patch) | |
| tree | d433f9c951c39af6b4e6e3030b09776fd893d640 /src/host | |
| parent | ae364b1460b91153cd94b4b0303eeda6419ff1d1 (diff) | |
[HUB] Prevent status request to invalid ep_num
Diffstat (limited to 'src/host')
| -rw-r--r-- | src/host/usbh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/host/usbh.c b/src/host/usbh.c index 4d30d9f81..53e8a654b 100644 --- a/src/host/usbh.c +++ b/src/host/usbh.c @@ -456,7 +456,7 @@ void tuh_task_ext(uint32_t timeout_ms, bool in_isr) { #if CFG_TUH_HUB // TODO remove - if ( event.connection.hub_addr != 0) { + if ( event.connection.hub_addr != 0 && event.connection.hub_port != 0) { // done with hub, waiting for next data on status pipe (void) hub_edpt_status_xfer( event.connection.hub_addr ); } |
