Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: F401RE-USBHostMIDI_RecieveExample
Fork of F401RE-USBHost by
Diff: USBHost/USBHostHub.cpp
- Revision:
- 10:40c7f6788902
- Parent:
- 9:7f9f64cf5ded
--- a/USBHost/USBHostHub.cpp Mon Feb 03 13:00:16 2014 +0000 +++ b/USBHost/USBHostHub.cpp Wed Feb 05 13:34:37 2014 +0000 @@ -15,6 +15,7 @@ #define C_PORT_RESET 20 bool USBHost::Hub(USBDeviceConnected* dev) { + USB_INFO("New HUB: VID:%04x PID:%04x [dev: %p]", dev->getVid(), dev->getPid(), dev); HubDescriptor hubdesc; // get HUB descriptor int rc = controlRead(dev, @@ -51,7 +52,7 @@ lowSpeed = 1; } PortReset(dev, i); - if (!addDevice(1, i, lowSpeed)) { + if (!addDevice(dev, i, lowSpeed)) { ClearPortPower(dev, i); // power off } } else {