mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-31 05:52:55 +08:00
Merge pull request #2404 from Ryzee119/patch-2
[HUB] Prevent status request to invalid ep_num
This commit is contained in:
commit
b7581f0995
@ -456,7 +456,7 @@ void tuh_task_ext(uint32_t timeout_ms, bool in_isr) {
|
|||||||
|
|
||||||
#if CFG_TUH_HUB
|
#if CFG_TUH_HUB
|
||||||
// TODO remove
|
// 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
|
// done with hub, waiting for next data on status pipe
|
||||||
(void) hub_edpt_status_xfer( event.connection.hub_addr );
|
(void) hub_edpt_status_xfer( event.connection.hub_addr );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user