USB Host WAN Dongle library
Fork of USBHostWANDongle_bleedingedge 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; } -