summaryrefslogtreecommitdiff
path: root/src/host
diff options
context:
space:
mode:
Diffstat (limited to 'src/host')
-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