mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #353 from neilt6/master
Reset device to initial state in disconnect()pull/355/head
commit
1b287bb08e
|
@ -718,6 +718,11 @@ void USBDevice::disconnect(void)
|
|||
{
|
||||
/* Disconnect device */
|
||||
USBHAL::disconnect();
|
||||
|
||||
/* Set initial device state */
|
||||
device.state = POWERED;
|
||||
device.configuration = 0;
|
||||
device.suspended = false;
|
||||
}
|
||||
|
||||
CONTROL_TRANSFER * USBDevice::getTransferPtr(void)
|
||||
|
|
Loading…
Reference in New Issue