diff options
| author | Ha Thach <[email protected]> | 2024-01-11 12:34:54 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-01-11 12:34:54 +0700 |
| commit | b7581f09952242dd01ecf0e859ca0a01bde41ecc (patch) | |
| tree | e395cd5da101ac4348a76e20b51e643da12b40a6 /src/host | |
| parent | b5d5ae9b18d38ebdb73ab54c63b5940a1dbf84c9 (diff) | |
| parent | d39d06e6d920aadc9e479d4dfb8620dd3871cb98 (diff) | |
Merge pull request #2404 from Ryzee119/patch-2
[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 ); } |
