summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--demos/host/src/tusb_config.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/demos/host/src/tusb_config.h b/demos/host/src/tusb_config.h
index e8e58b7ce..ab5a9fe4c 100644
--- a/demos/host/src/tusb_config.h
+++ b/demos/host/src/tusb_config.h
@@ -52,7 +52,6 @@
//--------------------------------------------------------------------+
// HOST CONFIGURATION
//--------------------------------------------------------------------+
-#define TUSB_CFG_HOST_DEVICE_MAX 5 // TODO be a part of HUB config
//------------- CLASS -------------//
#define TUSB_CFG_HOST_HUB 1
@@ -62,6 +61,8 @@
#define TUSB_CFG_HOST_MSC 1
#define TUSB_CFG_HOST_CDC 1
+#define TUSB_CFG_HOST_DEVICE_MAX (TUSB_CFG_HOST_HUB ? 5 : 1) // normal hub has 4 ports
+
//--------------------------------------------------------------------+
// COMMON CONFIGURATION
//--------------------------------------------------------------------+