summaryrefslogtreecommitdiff
path: root/tinyusb/host
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-04-28 00:00:48 +0700
committerhathach <[email protected]>2013-04-28 00:00:48 +0700
commitfdd98e2fa954af916b2b61b4852d21af11477cd0 (patch)
treeb6622ec807663c1ab4d4c7a41f006bbd9b070f00 /tinyusb/host
parentd68f882a251f3f3deb3fad38eab61cc717429a07 (diff)
clean up main
Diffstat (limited to 'tinyusb/host')
-rw-r--r--tinyusb/host/ehci/ehci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tinyusb/host/ehci/ehci.c b/tinyusb/host/ehci/ehci.c
index cef713133..3c2c83f2b 100644
--- a/tinyusb/host/ehci/ehci.c
+++ b/tinyusb/host/ehci/ehci.c
@@ -482,7 +482,8 @@ void port_connect_status_change_isr(uint8_t hostid)
{
ehci_registers_t* const regs = get_operational_register(hostid);
- if (regs->portsc_bit.current_connect_status) // device plugged
+ // NOTE There is an sequence plug->unplug->…..-> plug if device is powering with pre-plugged device
+ if (regs->portsc_bit.current_connect_status)
{
usbh_device_plugged_isr(hostid);
}else // device unplugged