summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyzee119 <[email protected]>2024-01-07 08:25:31 +1030
committerRyzee119 <[email protected]>2024-01-07 08:34:18 +1030
commita4aa454a7a21c022569eccfea493b8a96d182d9c (patch)
tree8a333579b3451c4247b4244df855b356d7d788be
parentae364b1460b91153cd94b4b0303eeda6419ff1d1 (diff)
[HUB] Fix double status xfer
-rw-r--r--src/host/hub.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/host/hub.c b/src/host/hub.c
index 32f5e0ac7..3bac18698 100644
--- a/src/host/hub.c
+++ b/src/host/hub.c
@@ -435,9 +435,12 @@ static void hub_port_get_status_complete (tuh_xfer_t* xfer)
// Other changes are: L1 state
// TODO clear change
- // prepare for next hub status
- // TODO continue with status_change, or maybe we can do it again with status
- hub_edpt_status_xfer(daddr);
+ else
+ {
+ // prepare for next hub status
+ // TODO continue with status_change, or maybe we can do it again with status
+ hub_edpt_status_xfer(daddr);
+ }
}
}