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.
Fork of USBHostWANDongle by
Diff: USBHost/USBHost.cpp
- Revision:
- 11:a0841fba0599
- Parent:
- 10:08bce4cd973a
- Child:
- 13:c154e7f2e42f
--- a/USBHost/USBHost.cpp Thu Aug 30 09:15:55 2012 +0000 +++ b/USBHost/USBHost.cpp Thu Aug 30 14:13:24 2012 +0000 @@ -316,12 +316,14 @@ } -void USBHost::resetDevice(USBDeviceConnected * dev) { +USB_TYPE USBHost::resetDevice(USBDeviceConnected * dev) { int index = findDevice(dev); if ((index != -1) && (!deviceReset[index])) { resetPort(dev->getHub(), dev->getPort()); deviceReset[index] = true; + return USB_TYPE_OK; } + return USB_TYPE_NOTFOUND; } // link the USBEndpoint to the linked list and attach an USBEndpoint to a device @@ -956,4 +958,3 @@ *((uint32_t*)&setupPacket[6]) = (uint32_t) len; } -