summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZixun LI <[email protected]>2026-02-15 23:34:18 +0100
committerGitHub <[email protected]>2026-02-15 23:34:18 +0100
commit41a00f498e525c3b8ec0b5aa2b2744acdad799e8 (patch)
tree41343c3b576d775286e780cce5dacbf9b4a8af07
parentda102806114f90e9fec99b875d6dcf0134d873f2 (diff)
parent59feef3208b84da0414c5159a9edba7653a82324 (diff)
Merge pull request #3502 from roma-jam-lab/dbg/nested_hubs_address_empty_warning
add(usbh.c): LOG1 debug message when no address available for hub
-rw-r--r--src/host/usbh.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/host/usbh.c b/src/host/usbh.c
index 41f41dcfb..d702e9186 100644
--- a/src/host/usbh.c
+++ b/src/host/usbh.c
@@ -1841,6 +1841,12 @@ static uint8_t enum_get_new_address(bool is_hub) {
}
}
+#if CFG_TUH_HUB
+ if ( is_hub ) {
+ TU_LOG1("All addresses are occupied, try to increase CFG_TUH_HUB value.\r\n");
+ }
+#endif // CFG_TUH_HUB
+
return 0; // invalid address
}