From fdd98e2fa954af916b2b61b4852d21af11477cd0 Mon Sep 17 00:00:00 2001 From: hathach Date: Sun, 28 Apr 2013 00:00:48 +0700 Subject: clean up main --- tinyusb/host/ehci/ehci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tinyusb/host') 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 -- cgit v1.3.1