Skip to content

Commit

Permalink
Merge pull request #2404 from Ryzee119/patch-2
Browse files Browse the repository at this point in the history
[HUB] Prevent status request to invalid ep_num
  • Loading branch information
hathach authored Jan 11, 2024
2 parents b5d5ae9 + d39d06e commit b7581f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/host/usbh.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
Expand Down

0 comments on commit b7581f0

Please sign in to comment.