From 88b7f9a2fff3a732ef9a8174d435cd02b21a0244 Mon Sep 17 00:00:00 2001 From: sakumisu <1203593632@qq.com> Date: Sun, 11 Sep 2022 22:43:51 +0800 Subject: [PATCH] enable all hub port power --- class/hub/usbh_hub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/class/hub/usbh_hub.c b/class/hub/usbh_hub.c index d91b9090..e4ce5a43 100644 --- a/class/hub/usbh_hub.c +++ b/class/hub/usbh_hub.c @@ -312,7 +312,7 @@ static int usbh_hub_connect(struct usbh_hubport *hport, uint8_t intf) } for (uint8_t port = 0; port < hub->hub_desc.bNbrPorts; port++) { - ret = usbh_hub_set_feature(hub, 1, HUB_PORT_FEATURE_POWER); + ret = usbh_hub_set_feature(hub, port + 1, HUB_PORT_FEATURE_POWER); if (ret < 0) { return ret; }