summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2026-06-01 10:58:36 +0700
committerhathach <[email protected]>2026-06-01 10:58:36 +0700
commit17185428df755d7229407e6ac87c124e522877dc (patch)
treed84002c623a44c6f4d30bbcea2447612abfec064
parent7e0fcaa41ee9330274808d88e5211bdbe37511a4 (diff)
CFG_TUH_CONTROL_PENDING_QUEUE_SZ defefault to 4 if hub is eanbled, 2 if not
-rw-r--r--src/host/usbh.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/host/usbh.c b/src/host/usbh.c
index 05e03245f..9d159985e 100644
--- a/src/host/usbh.c
+++ b/src/host/usbh.c
@@ -41,7 +41,11 @@
#endif
#ifndef CFG_TUH_CONTROL_PENDING_QUEUE_SZ
- #define CFG_TUH_CONTROL_PENDING_QUEUE_SZ 4
+ #if CFG_TUH_HUB
+ #define CFG_TUH_CONTROL_PENDING_QUEUE_SZ 4
+ #else
+ #define CFG_TUH_CONTROL_PENDING_QUEUE_SZ 2
+ #endif
#endif
#ifndef CFG_TUH_INTERFACE_MAX