summaryrefslogtreecommitdiff
path: root/src/host
diff options
context:
space:
mode:
authorRyzee119 <[email protected]>2024-01-09 16:22:54 +1030
committerRyzee119 <[email protected]>2024-01-09 16:36:32 +1030
commitd39d06e6d920aadc9e479d4dfb8620dd3871cb98 (patch)
treed433f9c951c39af6b4e6e3030b09776fd893d640 /src/host
parentae364b1460b91153cd94b4b0303eeda6419ff1d1 (diff)
[HUB] Prevent status request to invalid ep_num
Diffstat (limited to 'src/host')
-rw-r--r--src/host/usbh.c2
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 );
}