summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiFiPhile <[email protected]>2026-02-21 17:03:06 +0100
committerHiFiPhile <[email protected]>2026-02-21 17:03:06 +0100
commit167a50714636261b72ed6fc3f7c6682c209c0d7f (patch)
treefd4b5d1eef87314b955a92c8cec3d9882fe4d597
parentc5ec572396d3f5bae05d4f0baa2c026598604f48 (diff)
fix ci
Signed-off-by: HiFiPhile <[email protected]>
-rw-r--r--src/portable/synopsys/dwc2/hcd_dwc2.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/portable/synopsys/dwc2/hcd_dwc2.c b/src/portable/synopsys/dwc2/hcd_dwc2.c
index 0fbb55191..f7dc93ae1 100644
--- a/src/portable/synopsys/dwc2/hcd_dwc2.c
+++ b/src/portable/synopsys/dwc2/hcd_dwc2.c
@@ -432,10 +432,13 @@ bool hcd_init(uint8_t rhport, const tusb_rhport_init_t* rh_init) {
if (rh_init->speed < TUSB_SPEED_HIGH || !TUH_OPT_HIGH_SPEED) {
// disable high speed mode
dwc2->hcfg |= HCFG_FSLS_ONLY;
- } else {
+ }
+#if TUH_OPT_HIGH_SPEED
+ else {
// work at max supported speed
dwc2->hcfg &= ~HCFG_FSLS_ONLY;
}
+#endif
// configure fixed-allocated fifo scheme
dfifo_host_init(rhport);